vendredi 22 mai 2015

Why when I click on the checkbox doesn't call the function onclick?

function click()
{
  alert("function is called");
}
<form action="regCheck.aspx" method="post" onsubmit="return submitF()">
  <input type="checkbox" name="checkboxs" onclick="click()"/>
</form>

This is not my real file. I'm just writing this part of my code so you people could see why my onclick function is not being called. If the javascript opens a window of alert when I click the checkbox, then it means I can use it. I hope you can help me. Thanks!




Aucun commentaire:

Enregistrer un commentaire