954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Radio button checked?

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?

Scooby08
Newbie Poster
20 posts since Aug 2008
Reputation Points: 10
Solved Threads: 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

langsor
Posting Whiz
390 posts since Aug 2008
Reputation Points: 30
Solved Threads: 36
 

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.

mackone
Posting Pro
587 posts since Aug 2008
Reputation Points: 65
Solved Threads: 10
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You