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
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
>>
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"
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;
4 matches
Mail list logo