Answers for "how to select id in jquery"

1

how to select id in jquery

$(document).ready(function() { 
let tags = $("p"); //for tags
let classes = $('.myClass'); //for class
let id = $('#myID'); // for ID
})
Posted by: Guest on May-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language