onSubmit: how to determine which fields have changed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marjeta
    New Member
    • Sep 2008
    • 25

    onSubmit: how to determine which fields have changed?

    I have a form with lots of questions and a submit button. The answers are captured in text fields.

    When <submit> is clicked, I want JavaScript to determine which fields have changed and submit only those.

    Is that possible?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It is, but you will need to keep track of changes using the onchange event handler of each text box.

    Comment

    Working...