Form Field Not Empty Validation Kodu
<!-- Description: A Javascript check to see if a field is empty.
Browsers: All
Server requirements:N/A
Additional Information:
Note: This script will check all form field values for empty just replace your input button tag with this one. -->
<script type='text/javascript'>
<!---
function IsNotEmpty(elem, helperMsg){(elem.value.length == 0){(helperMsg);
elem.focus();
return false;
}
return true;
}
//--->
</script>
<!--- replace your form button with this one --->
<input type='button'
onclick="IsNnotEmpty(document.getElementById('req1'), 'Please Enter a Value')"
value='Check Field' />
alert
if