Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Radio Event Not Registered

Reply
Thread Tools

Radio Event Not Registered

 
 
MC
Guest
Posts: n/a
 
      07-22-2008
Question,
Why does the following code register the event for input type button but not
radio? (And how do I make this happen?)
Thanks,
MC

<HTML>
<FORM name='x' action=''>
<input type='radio' name='rbTest' id='YES_1' value='1'>YES
<input type='radio' name='rbTest' id='NO_1' value='0'>NO
<input type='button' name='btnTest' id='btnTestid' value='test'>
</FORM>
<SCRIPT LANGUAGE="Javascript" type="text/javascript">
document.x.btnTest.onclick = doTest;
document.x.rbTest.onclick = doTest;
function doTest(e) {
alert('doTest');
}
</SCRIPT>
</HTML>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
COM object with CLSID is either not valid or registered issue with ASP.NET not Windows. Jen ASP .Net 2 02-18-2010 01:37 AM
overriding GridView.OnRowDeleting - can call registered event handlers TS ASP .Net Building Controls 12 11-11-2008 02:36 PM
Radio Event Not Registered MC Javascript 3 07-23-2008 05:49 PM
Writing to a registered source in the Application event log with I =?Utf-8?B?SmVmZkRvdE5ldA==?= ASP .Net 6 08-01-2006 09:19 PM
Where is event to call Select Method registered in GridView Control? PeterKellner ASP .Net 0 07-13-2006 07:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57