nagalenoj Posted February 21, 2009 Share Posted February 21, 2009 I have a requirement like the following, I have to have 5 or more text boxes in a form. But, when submitting the form, I have to submit only 2 textbox values. Ofcourse, we can leave the other values when getting the values. But, I need to discard when submitting..., Is it possible? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 21, 2009 Share Posted February 21, 2009 I'm confused... Quote Link to comment Share on other sites More sharing options...
Q695 Posted February 21, 2009 Share Posted February 21, 2009 if there's data in the field do a hidden field, and if there's no data show the textbox? Quote Link to comment Share on other sites More sharing options...
jitesh Posted February 21, 2009 Share Posted February 21, 2009 Onsubmit event disable textboxes which you do not want to submit using JS. Disabled fields never posted. Like function onevent(){ document.getElementById('textbox1').disabled = true; } 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.