thecommonthread Posted July 30, 2010 Share Posted July 30, 2010 So I have a script that dynamically edits the innerHTML of a span. <span id="reg_opt_hid_field"><input name="reg_opt_details" id="reg_opt_details" type="hidden" value="" /></span> <span id="reg_price_hid_field"><input name="reg_price" id="reg_price" type="hidden" value="" /> Basically, if you choose certain radio button(s) in my form, it will create a hidden form value that stores the price of a service based upon the option(s) you choose. So this passes the variable fine in Internet Explorer (I tested in v., but for some reason Firefix will not pass this variable over. What the heck is the deal??? Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
trq Posted July 30, 2010 Share Posted July 30, 2010 Can we see some relevant code? Quote Link to comment Share on other sites More sharing options...
thecommonthread Posted August 3, 2010 Author Share Posted August 3, 2010 The page is located at http://www.akapa.org/events/conf_reg.php. As you can see, the javascript should be creating a hidden input tag in the form (using post method) that displays the "total" registration cost: document.getElementById('reg_price_hid_field').innerHTML='<input name="reg_price" id="reg_price" type="hidden" value="'+total+'" />'; This method works in Internet Explorer 8, but I noticed in Firefox that it didn't carry the post variable over. 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.