SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict mcrumlish's Avatar
    Join Date
    Jan 2002
    Posts
    384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    disable form submit until all form elements completed

    Hi,

    I am developing a survey and I want to set it up so that the submit button can't be clicked until all of the elements in the form are completed (there are radio buttons, dropdowns, checkboxes and text boxes)

    I have seen forms where the submit button appeared but it was shaded out or faded. Does anyone know how I can do this?

    Thanks in advance,
    Martin

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds complicated. I expect you'd have to call a function to check the contents of each field each time any field contents or focus changed, then enable the button only if all fields meet your pre-set criteria.


    Andy
    From the English nation to a US location.


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
  •