Check if empty problem
Posted on 2004-04-14
if(!obj.value && strhello)
alert('Please enter a value for the '+name+'.');
I'm passing it like this:
But I have it on multiple fields, and if I leave one field blank, it will go into an endless loop alerting for all remaining fields that are empty. I tried adding a "return false/true" at the end of the event handler, but no luck. Any ideas?