DEMO text input validation

Input :
Submit the form by clicking the button.

Javascript validation


<form name='form1' action='javascript_validation-demo.php' method='post' onSubmit='return validate();'>
Input :<input type=text name=textinput value=''> <br>
<div id='my_msg'>Submit the form by clicking the button.</div><br>
<input type=submit value=submit>


<script language="JavaScript" type="text/JavaScript">
function validate() {
document.getElementById('my_msg').innerHTML=" Fill the text box before submitting ";
///alert("Fill the Input box before submitting.");
return false;
else	{
return true;

JavaScript Validation

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer