we3schools javascript type call function with button code example
Example: javascript onclick
document.getElementById("Save").onclick = function ()
{
alert("hello");
//validation code to see State field is mandatory.
}
document.getElementById("Save").onclick = function ()
{
alert("hello");
//validation code to see State field is mandatory.
}