Can anyone help me with my code, I want to call function1() and as well as function0(), but it is only calling function1(). How can I make my code to call both the functions?
<!DOCTYPE html>
<html>
<head>
<script>
document.getElementById("Save").onclick = function function0()
{
alert("Intellipaat");
//validation code to see State field is mandatory.
}
function function1()
{
alert("function1 called");
//form validation that recalls the page showing with supplied inputs.
}
</script>
</head>
<body>
<form name="form1" id="form1" method="post">
State:
<select id="state ID">
<option></option>
<option value="ap">ap</option>
<option value="bp">bp</option>
</select>
</form>
<table><tr><td id="Save" onclick="f1()">click</td></tr></table>
</body>
</html>
Can anyone help me with this?