I have 1 big form which is made in jsp. After a few form elements i have a drop down box, on the change of its value it depends that whether the next form elements should be displayed or not. But then its necessary to make sure that it will be belong to a single form only. Using ajax i am able to get a div tag populated successfully.
I'm not sure what you're asking--if you're just showing some form elements that were hidden before there shouldn't be an issue. Are you saying you're filling a div with the result of an Ajax call that returns a segment of a form?
Joined: Oct 21, 2009
Dear David ,
Thanks a lot for trying to resolve my issue. Actually i m new in web desinging and programming field. But somehow i managed to get the solution.
I have 1 big form which i divide into 2 div tags. In 1st div tag there are several elements of the form and 1 drop down menu. On change of its value it checks in database for its relevant entry. If the concerned record is present in table then i dont need to show the further form(which i divided in 2nd div tag). Else i shd display the entire form and and allow user to submit the data.
So i was missing with its dynamicness.
I checked the presence of value in database through ajax. And was able to display the message whether the value is present or not. So through style tag i hide the display in that 2nd div. And in ajax function i changed the style property of div tag and made that visible.