473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Radio button not firing an event for javascript like check box

Hi there

I have some fancy mootools javascript hooked up to my form controls to show and hide the relevant sections in the current form. For instance, checking the shareholder box automatically shows the shares textbox. Unchecking hides the box.

This all works fine except when it comes to the radio buttons. You have to select the button, then click off of it to fire the event.

The same code works fine in Firefox.

Any ideas?

Thanks for your help.

Regards

Rob
Dec 10 '10 #1
2 2063
JKing
1,206 Expert 1GB
Can you post the code?

Also when you say "the same code works fine in Firefox" does that mean this issue is only occurring on a particular browser? If so what browser?
Dec 10 '10 #2
rnd me
427 Expert 256MB
use onclick instead of onchange...
Dec 15 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: steve | last post by:
Hi all If I use this code <% If Request.Item("col")="firstcoll" Then Response.Write "Checked"%> in .aspx page for example like that <input type="radio" name="col" value="firstcoll" <% If...
3
by: steve | last post by:
Sorry if I have post this two times. Hi all What I'm trying to achieve is: I have a form with two radio buttons, if a visitors check radio button 2 and click submit in the next page radio...
1
by: walterd | last post by:
Hi I have a DataGrid with dynamically created Radio Buttons using ItemTemplate. How can I catch the Click Event for the selected Radio Button in Client Side? I need to perform some validation...
9
by: Marc | last post by:
Okay, here's the problem - I have 3 radio buttons, and 11 check boxes (which are disabled by default). I have the javascript below which when the last radio button is clicked, enables the...
2
by: amerar | last post by:
Hi All, I am using this code to dynamically check is a radio button was checked on the page. This worked great, if there is more then 1 button in the group, but fails if there is only 1 button...
1
by: querry | last post by:
`Hi all, I am trying to get the selected radio button item in a radio button list using javascript. I am successful at doing this, but the problem is I have several Radio Button Lists, and the...
1
by: runway27 | last post by:
hi i have registration form where user selects from a drop down to select their area code apart from filling other details in the form. in the next page which is a confirmation page i would like...
1
by: selvialagar | last post by:
my code doesn't work. undefined is displayed.....how to get a value of radoi button in javascript function enableaddr() { alert(document.getElementById('reason').length); for (var i=0; i <...
2
by: ghjk | last post by:
I have 2 radio buttons in php file and I want to send values of them to a javascript. When I put same ID name to both radiobuttions, it doesn't work. But javascript only get values using the id....
1
by: tejas80 | last post by:
Hi All, I have one issue with me. I have two radio buttons on screen.If i will select one of the radio button then it will enable one hidden <DIV> tag from form and it i will selection another...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.