Javascript - Set dynamic title for image using jquery, How to set title dynamicaly
Set dynamic title for image using jquery
Here is a simple example to set title for an image by jquery.HTML Code
<li><a href="home.html"><img src="images/home.jpg" ></a></li> <li><a href="contact.html"><img src="images/contact.jpg"></a></li>
Javascript Code
$(document).ready(function(){ $('.menu li').mouseover( function(){ var src = $(this).find('a').attr('href'); $('.hbg').attr('title', 'title name here'); }); });When mouse is moved over the list, You can see the title dynamically.
The topic on Javascript - Set dynamic title for image using jquery is posted by - Danial
Hope you have enjoyed, Javascript - Set dynamic title for image using jqueryThanks for your time