0

Is there way to tell if a radio button is checked by not using the value at all?? And by not using any javascript either..

Here is what Im using:

<input type="radio" name="item_id" value="1" />
<input type="radio" name="item_id" value="1" />

Now I need the name and value to stay like that.. Is it possible to see which is checked?

3
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by mackone
0

There are two ways to tell if a radio button is checked ...
1) submit the form and see what value the name or id contains
2) test the radio button-set with javascript

so to answer your question -- no

0

What you could do is create the event in JavaScript, with the control being
in the server side. You could do that by closing the object in a span an
firing a function in the onclick of the span or the object that you have
your checkbox in.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.