function to click a button js 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.
}