views:

17

answers:

1

Hi,

I have this:

<meta name="description" content="NEED_TO_UPDATE_THIS" />
<meta name="keywords" content="" />

and i need to update the content of meta tag that has the name="description" using jQuery. How can i use the selectors to choose that content atribute of that tag?

thanks

+5  A: 
$('meta[name=description]').attr('content', 'new value');

Although doing this doesn't make much sense because web crawlers which use this tag usually don't support javascript.

Darin Dimitrov
thank U, you are my obiwan :D thanks
Narven