harshpandya Posted September 9, 2010 Share Posted September 9, 2010 Hi guys, Wt if i have the form which has some fields , now some of the fields are inside one Div,but this div has css display:none, when i submit my form will all my fields go as a part of get or post ?Please reply quickly, Also if answer is "No" then is there a other way to do this, Thanks, Link to comment Share on other sites More sharing options...
dsonesuk Posted September 9, 2010 Share Posted September 9, 2010 I believe there maybe a problem with IE, use visibility:hidden; may work, i know using position relative; or absolute with left:-9999em, which take them of the screen viewport will work.I know i had problems with radio inputs, checkboxes that where hidden using display none, when trying to pass values using post or get Link to comment Share on other sites More sharing options...
jeffman Posted September 9, 2010 Share Posted September 9, 2010 Would it work if the fields were not in a hidden div, but they were <input type="hidden"> ? I can imagine a form where the user inputs data, and then for some reason you hide the inputs before you send them. But if this is a case where the input data is always meant to be hidden, and this is the reason you are hiding the div, then <input type="hidden"> sounds like the better solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.