Sunday, January 5, 2014

How to set multiple data attributes using the jQuery.attr()

$('#img').attr({
     alt: 'Beijing Brush Seller',
     title: 'photo by Kelly Clark'
});

No comments:

Post a Comment