run function when btutton click javascript 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.
}