Jump to content

Save data without refreshing form


vividona

Recommended Posts

<script type="text/javascript">

function checkfrm()

{

if(document.myForm.myTextBox.value !="Irshad Siddique")

{

alert("Wrong Name!");

document.myForm.myTextBox.focus();

return false;

}

}

</script>

<form action="" method="POST" name="myForm" id="myForm" onSubmit="return checkfrm();">

  <label>

  <input name="myTextBox" type="text" id="myTextBox" />

  </label>

  <label>

  <p>

    <input type="submit" name="Submit" value="Submit" />

</p>

  <p>Please Write in text box Irshad Siddique and click on button</p>

  <p>and now write  another name and click on button and see the results </p>

</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.