Code:
<script type="text/javascript">
function checkIt() {
f = document.theForm;
if(f.whatever.value == '' || f.etc.value == '') {
alert('Error: You must fill out all required fields.');
return false;
} else return true;
}
</script>
<form name="theForm" onsubmit="return checkIt()">
<textarea name="whatever"></textarea>
<input type="text" name="etc" />
</form>
__________________
***If your problem has been solved, PLEASE click the
RESOLVED LINK under "Thread Tools"***
"Well Bones, do the new medical facilities meet with your approval?" -- Kirk
"They do not. It's like working in a damn computer center" -- McCoy (Star Trek: TMP)
Useful links: Debugging 101 ||
NJOE || (Sig
image) ||
Rolla Engineered Solutions, LLC