Posted on 16th September 2024|3761 views
How can I add an id attribute to an HTML tag with a JQuery class?
Posted on 16th September 2024| views
Adding an attribute in jQuery is very simple you can use the following syntax
$(‘div.special’).attr(‘id’, ‘value_of_your_id’);
If you are looking for the Jquery certification course, you can check out this online Jquery Training and Improve your knowledge in Jquery.