Instant value Checkboxes
Moderator: General Moderators
-
jbstone713
- Forum Newbie
- Posts: 14
- Joined: Wed Mar 02, 2005 10:01 pm
Instant value Checkboxes
Is there a way to instantly store a value in a checkbox without clicking submit (just check it)?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
jbstone713
- Forum Newbie
- Posts: 14
- Joined: Wed Mar 02, 2005 10:01 pm
No, I know that I can specify a checkbox to be checked or unchecked when the page first loads. I mean when a person actually clicks a checkbox, the value is instantly stored. I have a form that has a hyperlink that "adds favorites" and returns to the same page. If a user selects a checkbox(without clicking submit) and clicks on the "adds favorites" link, the checkbox is now unchecked. However, if a user selects a checkbox, then he clicks submit(and he got returned to this form because of user error), and he then clicks on an "adds favorites" link, the checkbox will remain checked. I built in form handling to ckeck for required fields. The values of a checkbox will only be passed if the user selects a checkbox, and then clicks submit. If he selects a checkbox and doesn't click submit, there is no value. Any idea how I can instantly store a value the instant a checkbox is selected?
-
jbstone713
- Forum Newbie
- Posts: 14
- Joined: Wed Mar 02, 2005 10:01 pm
I thought about that, but I have an add favorites link for each individual item that is displayed on the same page. Each link works only for that particular item. If a user is scrolling down, checks a box(but doesn't want it in his favorites, then decides to add a different item into his favorites further down the page, the checked checkbox that he clicked above will dissappear! That is why I need a way to instantly store a value once a checkbox is clicked.
-
jbstone713
- Forum Newbie
- Posts: 14
- Joined: Wed Mar 02, 2005 10:01 pm