Answers for "input onclik"

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
1

button onclick

<p id="demo" onclick="myFunction()">Click me to change my text color.</p>

 
<script>
function myFunction() {
  document.getElementById("demo").style.color = "yellow";
}
</script>
Posted by: Guest on August-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language