how you create function for a click event in 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.
}