Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery messes up form submission

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29665
    Makeshift
    Member

    Hey guys, I’m making a contact section on my site, and when you click the submit button, it disables the inputs, textarea and fades in a little message. But it seems the jQuery stops the form from submitting the information..

    Code:
    //$(‘#submit’).click(function(){
    //$(‘input, textarea’).attr(‘disabled’, ‘disabled’);
    //$(‘#send’).fadeIn(‘slow’);
    //});

    so, when i click the button, it refreshes the page, no information is sent…

    any help will be appreciated :)

    #80070
    dcp3450
    Participant

    disabled form items will not send any data

    #80105
    Makeshift
    Member

    Dang, I was unaware, lol. thank you :)

    #80106
    dcp3450
    Participant

    one way to work around it to have a hidden field with the same "name" write some javascript/jquery that copies what you have in the box as you type and places it as the value of the hidden field.

    Hidden fields will submit data.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.