¡@

Home 

2014/10/16 ¤W¤È 12:05:39

jquery Programming Glossary: myradio

How to enable/disable a certain textbox depending on which radiobutton was checked?

http://stackoverflow.com/questions/3440610/how-to-enable-disable-a-certain-textbox-depending-on-which-radiobutton-was-check

was checked I've 3 radiobuttons and a textbox next to each other also 3 text boxes like this input type radio id myRadio value A checked checked input type text id myText1 br input type radio id myRadio value B input type text id myText2 br.. boxes like this input type radio id myRadio value A checked checked input type text id myText1 br input type radio id myRadio value B input type text id myText2 br input type radio id myRadio value C input type text id myText2 The first radioButton.. input type text id myText1 br input type radio id myRadio value B input type text id myText2 br input type radio id myRadio value C input type text id myText2 The first radioButton is checked by default and the textbox next to it should be enabled..

jQuery radio onchange toggle class of parent element?

http://stackoverflow.com/questions/964961/jquery-radio-onchange-toggle-class-of-parent-element

radio onchange toggle class of parent element Please have a look on the following '#myRadio' .change function if this .is ' checked' this .parent .addClass 'green' else this .parent .removeClass 'green' Markup.. 'green' Markup lookslike somewhat as following table tr td Some text 1 td td input type radio value txt1 name myRadio id text1 td td Some text 2 td td input type radio value txt2 name myRadio id text2 td td Some text 3 td td input type radio.. 1 td td input type radio value txt1 name myRadio id text1 td td Some text 2 td td input type radio value txt2 name myRadio id text2 td td Some text 3 td td input type radio value txt3 name myRadio id text2 td tr table When I switch radio above..