Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button onChange event only working in firefox

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
Hello,

I have written a function to be called from a radio button when an onchange event happens.

Except for Firefox, The function doesn't even get called in this code:

<input type="radio" value="true" onchange="disable_radios(this.form, 'page_object[blog_source]', 'none', false,'','');" name="page_object[show_blog_buzz]" id="page_object_show_blog_buzz_true" checked="checked"/>

I then striped out the arguments of the test to this:

<input type="radio" value="true" onchange="disable_radios();" name="page_object[show_blog_buzz]" id="page_object_show_blog_buzz_true" checked="checked"/>

and strip the function down to:

function disable_radios(){ alert("This is a Test!"); }

Any ideas?
Clem C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top