jQuery Selectors for buttons

PHOTO EMBED

Mon Dec 18 2023 03:17:23 GMT+0000 (Coordinated Universal Time)

Saved by @Sifat_H #jquery #selector #jqueryselector #documentready function #documentready #document.ready #jqueryonclick

$(document).ready(function(){
  $("button").click(function(){
    $("p").hide();
  });
});
content_copyCOPY

This works onclick of buttons in jquery selector

https://www.w3schools.com/jquery/jquery_selectors.asp