Home » Javascript » input type button onclick function is not working

input type button onclick function is not working

Posted by: admin August 12, 2018 Leave a comment

Questions:

I written an onClick function in input tag type button. But the function is not working when the button clicked.
attaching my input tag and javascript function with this:

function funcBookcar() {
  alert("booking");
}
<input type="button" name="sbmt" align="center" id="sbmt" class="bcar" value="SUBMIT" onClick="funcBookcar()">
Answers: