Web Development

Remove the title which generally shows when you mouse over or Hover over the image using jQuery

Just use this code and Replace section#wrapper-content with your image container

jQuery(document).ready(function(){
	jQuery("section#wrapper-content img").each(function(index, element) {
      jQuery(element).attr('data-title', jQuery(element).attr('title'));
   jQuery(element).removeAttr("title");
});
		});

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s