[Solved] jQuery add attributes to div [closed]

[ad_1]

$( function() {
  $('a').on('click', function() {
  $('#subs').prop('title', function() {
       return "I am a title";
  });
  });
});​

use prop() instead if attr() is not working!

Link to Fiddle

1

[ad_2]

solved jQuery add attributes to div [closed]