473,385 Members | 1,535 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,385 software developers and data experts.

onchange doesn't work in IE

For our website we have a reservation form.
When the user clicks on the radiobutton "yes" the rest of the form should appear. In FF and in Safari it works fine, but in IE it doesn't show.


headcode javascript:

Expand|Select|Wrap|Line Numbers
  1. function activate_luchthaven_retour(){
  2.                 var checkdiv = document.getElementById('bestemming_luchthaven_radio_ja');
  3.                 var retourdiv = document.getElementById('bestemming_luchthaven_retourja');
  4.                 if(checkdiv.checked == true){
  5.                     retourdiv.style.display = 'block';
  6.                 } else{
  7.                     retourdiv.style.display = 'none';
  8.                 }
  9.             }
Code inside the body

Expand|Select|Wrap|Line Numbers
  1. <td class="labeltd">Retour rit?</td>
  2.                                                 <td class="datatd">
  3.                                                     <input type="radio" name="bestemming_luchthaven_retour_radio" value="Ja" id="bestemming_luchthaven_radio_ja" onchange="activate_luchthaven_retour();"/>Ja
  4.                                                     <input type="radio" name="bestemming_luchthaven_retour_radio" value="Nee" id="bestemming_luchthaven_radio_nee" checked onchange="activate_luchthaven_retour();"/>Nee 
  5.                                                 </td>
  6.                                             </tr>
  7.                                         </table>
  8.                                         <table cellspacing="0" cellpadding="0" id="bestemming_luchthaven_retourja" class="innerTable" style="display:none;">
  9.                                             <tr>
  10.                                                 <td class="labeltd">Retour vluchtnummer:<span class="form_require_star">*</span></td>
  11.                                                 <td class="datatd"><input type="text" name="retour_luchthaven_lijnnr" id="retour_luchthaven_lijnnr" value="" /></td>
  12.                                             </tr>
  13.                                             <tr>
  14.                                                 <td class="labeltd">Retour Datum/Tijd:<span class="form_require_star">*</span></td>
  15.                                                 <td class="datatd">
  16.                                                     <span style="background-image:url(images/calendar_btn.png);background-repeat:no-repeat;margin:2px 0 0 0;float:left;cursor:pointer;width:20px;height:20px;display:block;" id="retour_datetime_btn"></span>
  17.                                                     <input id="retour_datetime" name="retour_datetime" />
  18.                                                     <script type="text/javascript">//<![CDATA[
  19.                                                         Calendar.setup({
  20.                                                             animation: false,
  21.                                                             inputField: "retour_datetime",
  22.                                                             trigger: "retour_datetime_btn",
  23.                                                             onSelect: function(){ this.hide(); $("#retour_datetime").valid(); },
  24.                                                             showTime: true,
  25.                                                             noScroll: true,
  26.                                                             dateFormat: "%d/%m/%Y %H:%M"
  27.                                                         });
  28.                                                     //]]></script>
This is not all of the code ofcourse
Jun 9 '12 #1
2 3057
In this case "yes" is "ja".
I hope anyone can understand this post since some of the used terms are written in Dutch.
Jun 9 '12 #2
Dormilich
8,658 Expert Mod 8TB
change the onchange to onclick (despite that is makes more sense anyways). IE has some known problems with onchange and radio buttons/checkboxes.
Jun 11 '12 #3

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

Similar topics

11
by: Julian | last post by:
Hi I have code in my login.asp which sets the online field in user database to true or 1. I am trying to use the same code in global.asa to change back the online field to 0 but it doesn't work....
2
by: jerry | last post by:
I'm trying to run an application under another user within a winform app writen in C#. I have tried a number of different things, but it seems that the CreateProcessWithLogonW function should work...
5
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
5
by: Jan Bares | last post by:
Hi, I have .NET 2003. When I run "Find in Files" command, everything works as expected. However when I run "Replace in Files" with the same settings a and press Find Next, I get: "Look in: A...
0
by: TaeHo Yoo | last post by:
After running my code, group tree(the left section of the report) changes but not the content in the report. My code is ---------------------------------------------------------- Private Sub...
4
by: Chris Lane | last post by:
Hi, I have an HTML RESET button and Web Control Button that posts back to the server. Problem is the reset button doesn't work after the postback occurs. Any ideas or suggestions as to why this...
0
by: Bruno | last post by:
Hello guys, I'm having problem using tagMapping with HtmlForm, I have this in web.config: <tagMapping> <add tagType="System.Web.UI.HtmlControls.HtmlForm" mappedTagType="CustomForm" />...
3
by: JHNielson | last post by:
I AM AT THE WIRE AND DESPERATELY NEED SOME HELP! I have a query that checks that when the user submits data to me, it checks that their total is correct. The SQL looks like this: UPDATE...
1
by: TonyJ | last post by:
Hello! I'm using VS2005. I'm looking at ADO.NET and have found some test tutorial solution on microsoft MSDN. The one that I'm looking at now is called Walkthrough: Saving Data to a Database...
3
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
Note: My apologies for repeating this post from last week, but my nospam alias and profile account were incorrect. I think I have fixed this, so hopefully this post will trigger MS into a response...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.