$( function() {
$('a').on('click', function() {
$('#subs').prop('title', function() {
return "I am a title";
});
});
});
use prop() instead if attr() is not working!
1
solved jQuery add attributes to div [closed]
$( function() {
$('a').on('click', function() {
$('#subs').prop('title', function() {
return "I am a title";
});
});
});
use prop() instead if attr() is not working!
1
solved jQuery add attributes to div [closed]