help with toggling checkboxes
Posted: Fri Jan 23, 2009 8:04 am
i have looked for tutorials to toggle checkboxes. there are quite a few but they dont seem to do what i need it to do. in my form i have a question that needs an answer. normally i would use a radio button for it. in this case i am not sure a radio button will work because only when the button is pressed do i want another action to happen.
when the 'yes' checkbox is checked then a field needs to be displayed for the user to enter some information. when the 'yes' checkbox is not checked then the field disappears. when pressing a radio button once the field appears and when you press it again the field disappears but the button is still 'checked'.
i also want to toggle the 2 checkboxes so when one is checked i see the field for infor input and when the other is checked not only do i not see the field but i also see the 'yes' checkbox unchecked and the 'no' checkbox checked.
so its like i am looking for the visuals of the checkbox, to clearly see when its checked and when its not, with the functionality of a radio button, where 2 buttons in a group cannot both be checked. its either on or the other (toggle)
when the 'yes' checkbox is checked then a field needs to be displayed for the user to enter some information. when the 'yes' checkbox is not checked then the field disappears. when pressing a radio button once the field appears and when you press it again the field disappears but the button is still 'checked'.
i also want to toggle the 2 checkboxes so when one is checked i see the field for infor input and when the other is checked not only do i not see the field but i also see the 'yes' checkbox unchecked and the 'no' checkbox checked.
so its like i am looking for the visuals of the checkbox, to clearly see when its checked and when its not, with the functionality of a radio button, where 2 buttons in a group cannot both be checked. its either on or the other (toggle)