logo-MindMajix
PostjQueryjQuery
s
sreelu 123

Posted on 23rd June 2024|92 views

0
votes

Jquery Hide Element By Class

How to hide elements by class in jQuery?

1 answers
Answers
P
divija reddy

Posted on 23rd June 2024| views

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
Name
Course *
Email *
Phone Number