Welcome visitor
* Login
* Register
It is currently July 21st, 2019, 6:29 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  using radio buttons
PostPosted: June 6th, 2009, 9:08 am 

Posts: 13
i have two radio buttons and what i want to do is when one of them is checked then it will perform an action according to its value, but how can i retrieve the value of the checked radio?


Top
 Profile  
 
  Re: using radio buttons
PostPosted: June 6th, 2009, 9:24 am 
User avatar

Posts: 79
You didnt provide us any code or link so we dont know exactly what you need but i still hope that this may help
<input type="radio" name="r1" onclick="alert(this.value);" value="a">
<input type="radio" name="r1" onclick="alert(this.value);" value="b">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron