Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use $ in javascript

// Add jquery to your html file
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

// Now select your elements using the $ sign
$(document).ready(function(){
  $("button").click(function(){
    $("p").hide();
  });
});
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
1+1 =