Tuesday, April 6, 2010

Change Page Title, Meta Keywords and Meta Description with jQuery

To change the page title use the following:
$("title").html([title])

For Meta Keywords and Meta Description:
$("meta[name = 'keywords']").attr("content", [keywords])
$("meta[name = 'description']").attr("content", [description])