SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [SOLVED] OnClick Disable Submit Button

    My submit button is as follows:

    Code:
    <input name="submit_contact" type="submit" id="submit_contact" value="Send Message" onclick="document.getElementById('contactmessage').style.visibility= 'visible'; this.disabled=true;">
    It successfully disables the button when clicked and submits the form in FIREFOX, but in IE it just disables the button and it sits there and does not submit the form (yes, there is a form action and method specified)!!

    What's the problem?
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs

  2. #2
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SOLVED: I just added "this.form.submit();" into the onClick node. Now it submits the form in IE.
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •