Post

jQueryjQuery

s
sreelu 123

Posted on 4th March 2024|82 views

0
votes

Jquery Hide Element By Class

How to hide elements by class in jQuery?

Answers
P
divija reddy

Posted on 4th March 2024

Let us suppose there is an <h> in which there are few elements and you want to hide all the elements of p you can do this by using the following code 

$("button").click(function(){

  $("h").hide();

});

 

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