Answers for "trigger a function when clicked on a button in html"

4

javascript onclick

document.getElementById("Save").onclick = function ()
    {
     alert("hello");
     //validation code to see State field is mandatory.  
    }
Posted by: Guest on September-08-2020
0

calling function on click html

<img src="hospital.png" id="hospitals" onclick="damarkers();">
Posted by: Guest on June-27-2020

Code answers related to "trigger a function when clicked on a button in html"

Code answers related to "Javascript"

Browse Popular Code Answers by Language