Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select by class

<p id="test" class="hello">Hello</p>

<script>
  //Hide all html elements "p"
  $("p").hide();
  //Hide id="Test"
  $("#test").hide();
  //Hide all class="hello"
  $(".hello").hide();
  //Hide all "p" with class="hello"
  $("p.test").hide();
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #select #class
ADD COMMENT
Topic
Name
7+4 =