Answers for "how to create a function on the click of a button"

6

jquery onclick function

$( "#other" ).click(function() {
  $( "#target" ).click();
});
Posted by: Guest on June-03-2020
9

javascript button

<button onclick="Function()">Text</button>
Posted by: Guest on May-10-2020

Code answers related to "how to create a function on the click of a button"

Code answers related to "Javascript"

Browse Popular Code Answers by Language