logo-MindMajix
PostjQueryjQuery
S
Swetha Shetty

Posted on 26th July 2024|3761 views

0
votes

Jquery Add Id Attribute

How can I add an id attribute to an HTML tag with a JQuery class?

1 answers
Answers
P
sri kanth

Posted on 26th July 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.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number