Answers for "add on click to div using jquery"

0

add on click to div using jquery

$(document).ready( function() {

  $("#viewclick").click( function() {
    // this will fire when you click view
  });
  $("#editclick").click( function() {
    // this will fire when you click edit
    // hide the view button here and upon submit, show it again
    // like $("#viewclick").hide() or $("#viewclick").fadeOut()
  });

});
Posted by: Guest on February-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language