[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread Shawn
that is a different issue than the ajax thing. but, it's also a common thing.. :) $("input[name='myradio']:checked").val() That should do it. Get the value of the checked radio option... I changed it to not use an ID, cuz chances are you are you are using a name and not an ID... Failin

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
hummm, not that simple. It's multiple radios with multiple values so how to get id and value of selected one? lionel28 wrote: > > Thanks for replying. > I am going to try your code. > > > Shawn Grover wrote: >> >> >> in short, no. Not that I know of. I mean no plugin per se. The >>

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
Thanks for replying. I am going to try your code. Shawn Grover wrote: > > > in short, no. Not that I know of. I mean no plugin per se. The > code/script is simple enough though... > > $("#myradio").click( function () { >$.ajax({ > url: "somepage.php", > data: "id=somevalue"

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread Shawn
in short, no. Not that I know of. I mean no plugin per se. The code/script is simple enough though... $("#myradio").click( function () { $.ajax({ url: "somepage.php", data: "id=somevalue", dataType: "json", success: function (results) { var opts = ""; for (x=0;