monaya
02-21-2009, 05:46 PM
I can't get a form button to become disabled (greyed out) and still get the form to submit:
<input name="btnsubmit" type="submit" id="btnsubmit" onclick="this.value='Please wait...';this.disabled = true;this.form.submit();" value="Submit"/>
This changes the text, disables the button, but when the form submits all other form fields come in empty?
This works and does the job, but I want to grey out the box or hide it
<input name="btnsubmit" type="submit" id="btnsubmit" onclick="this.value='Please wait...';this.disabled = disabled;this.form.submit();" value="Submit"/>
<input name="btnsubmit" type="submit" id="btnsubmit" onclick="this.value='Please wait...';this.disabled = true;this.form.submit();" value="Submit"/>
This changes the text, disables the button, but when the form submits all other form fields come in empty?
This works and does the job, but I want to grey out the box or hide it
<input name="btnsubmit" type="submit" id="btnsubmit" onclick="this.value='Please wait...';this.disabled = disabled;this.form.submit();" value="Submit"/>