This is my code in HTML:
<img id="test" src="https://blah">
This is in my jQuery and it works:
$( document ).on( 'mouseover', 'img', function(e) {
}
How can I add attribute to this 'img' element? I want this:
<img id="test" src="https://blah" title='test'>
I tried:
e.attr('title', 'test');
e.prop('title', 'test');
this.attr('title', 'test');
$(this).attr('title', 'test');
this.prop...
so on and so on.