ainoy31 Posted December 5, 2007 Share Posted December 5, 2007 Hello- I have a form with 4 radio buttons where people can choose what they want to do. Base on what they select, I display the questions. The 4 options uses almost the same questions except 2 or 3 here and there. I decided to put the questions in a separate function. Once an option has been picked, the question function gets called. Here is the code that does this: <input type="radio" name="shipment_type" value="air" onClick="hideAll(); changeDiv('air', 'block'); ">AIR <input type="radio" name="shipment_type" value="lcl" onClick="hideAll(); changeDiv('lcl', 'block'); ">LCL <input type="radio" name="shipment_type" value="fcl" onClick="hideAll(); changeDiv('fcl', 'block'); ">FCL <input type="radio" name="shipment_type" value="truck" onClick="hideAll(); changeDiv('truck', 'block'); ">TRUCK <div id="lcl" style="display:none;"> <? echo cal_dim(); ?> </div> <div id="lcl" style="display:none;"> <? echo cal_dim(); ?> </div> <div id="fcl" style="display:none;"> <? echo cal_dim(); ?> </div> <div id="truck" style="display:none;"> <? echo cal_dim(); ?> </div> It does displays the questions for each options picked but the problem is that none of the calculation fields work. Now, if I remove the echo cal_dim() away except for one option, then it works. Seems like I can not have all the options calling cal_dim() at the same time. Can my javascript cause this issue? All of my calculation fields uses javascript. I hope this is clear enough to understand. Much appreciation. AM Quote Link to comment Share on other sites More sharing options...
ainoy31 Posted December 5, 2007 Author Share Posted December 5, 2007 The issue is with my javascript. Researching and will post solution later.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.