Post

jQueryjQuery

A
Athiq mohd

Posted on 28th January 2023|32 views

0
votes

Jquery Get Id Of Clicked Element

How to get the ID of a clicked element?

Answers
P
kumar san

Posted on 28th January 2023

Use the following command

click(function() { var id = $(this). attr('id'); $container. cycle(id. replace('#', '')); return false; });

 

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