From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean O Subject: [jQuery] How to make radio button selected?
Based on what is typed, I want one of two radio buttons with the same name, but distinct IDs, to be selected. I have the RegEx working fine to pick out unique strings in the text box, but can't get the rest. Tips? ----- Sure, take a glance at this: http://pastie.caboo.se/27710 You can plug in your RegEx where I'm simply checking for 'red' or 'blue' to extend the flexibility a bit, but this should get you pointed in the right direction. For example you'll probably want to add some check to see if the text is changed after a radio button is selected and if the value still passes the check, and if not clears all selected radio buttons. -ALEX _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
