Monday, September 28, 2009

[jQuery] How to add some string in attributes?

If I have a tag image like this..

<img alt="My Account" src="/images/menu-my-account.png"/>

and when hover that image I want became like this

<img alt="My Account" src="/images/menu-my-account-hover.png"/>

How to code this with jquery?

Thanks....

No comments: