Jump to content

onclick ie error


fighnight

Recommended Posts

So I have this script that works on Firefox and other browsers except IE. The problem is that IE doesn't let the submit button submit the information.

 

Here is my code:

 


<input type="submit" name="submitButton" class="submit" value="Login" onClick="this.disabled = 'true'; this.value = 'Loading..'; this.form.submit();"></form>


Link to comment
https://forums.phpfreaks.com/topic/120204-onclick-ie-error/
Share on other sites

Try use full path:

<form name="yourFormName">
<input type="submit" name="submitButton" class="submit" value="Login" onClick="this.disabled = 'true'; this.value = 'Loading..'; document.yourFormName.submit();">
</form>

 

By the way, why do you need the "submit()" to submit the form. As the button is already a submit button.

Link to comment
https://forums.phpfreaks.com/topic/120204-onclick-ie-error/#findComment-619234
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.