Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
Here is my code:
var form = document.form1;
var returnValue = false;
if (form.title.value.length == 0)
var logo_title = document.getElementById('logo_title');
logo_title.style.color = 'Red';
returnValue = true;
<form name='form1' id='form1' >
<legend id='logo_title'><span>*</span> Title of Your Listing:</legend>
Text Title:<br />
<input type='text' name='title' size='30' maxlength='70' value='' /><br />
- OR -<br />
Image Logo<br />
<input type='file' name='fileImgLogo' size='30' value='' />
<p id='error_enterLogo'>Something something error message.</p>
<input type='submit' name='submit' value='Next ->' onclick='submit_check()' />
Thanks DrDoc. I'm new at this but even I should have seen that....
Do you know why this wouldn't be working in ie? If I leave the inputs blank, submit, than fix them; ie still will not continue to the submit.
[edited by: horseatingweeds at 10:31 pm (utc) on July 18, 2007]
I've tried clearing the fields with element.value = ''; but this wont work with the file input.
Fooling around with it, I have found that in IE it won't let you correct the file input then submit. You can use the brows button, then it will submit. Is this a bug? Anyone know a work around?
on the form.
Lowest common denominator.
And, I can tell you for a fact that not all browsers used to fire the
upon enter key press.