• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JavaScript - Enable Submit Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaScript - Enable Submit Button


  • Subject: Re: JavaScript - Enable Submit Button
  • From: Michael Engelhart <email@hidden>
  • Date: Sun, 22 Aug 2004 08:02:14 -0500

Try this:
onchange   "this.form.savebutton.disabled= false; return true;"

Mike
On Aug 22, 2004, at 3:30 AM, Erwin wrote:

I would like to enable/disabled a 'Save Form Data' button if anyone text fields changed before submitting the form.

I selected 'multiple submit = true' in my form and I inserted 2 dynamic submit buttons 'Save' and 'Submit'
I binded the 2 buttons to 2 actions 'saveData' and 'submitForm'
The 'Save' button is initially disabled


I am enabling the Save button using a JavaScript string in all my textfields
-> onChange "this.form.savebutton.disabled= false;"


Running, when I modifiy one of the textfields, the Save button is enabled ... good
but I never get into the saveData action...... _______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >JavaScript - Enable Submit Button (From: Erwin <email@hidden>)

  • Prev by Date: Re: inter-instance communication
  • Next by Date: Re: JavaScript - Enable Submit Button
  • Previous by thread: JavaScript - Enable Submit Button
  • Next by thread: Re: JavaScript - Enable Submit Button
  • Index(es):
    • Date
    • Thread