Log in

View Full Version : Problem regarding Space between the rows



MSK7
07-01-2009, 07:57 AM
Hello all ,

I have a form , in which on top there are two

select boxes one for no.of adult & another one for child.

the max. values in both the select boxes that can be

selected are up to 5 .

on seleceting the value 1 in the adult selectionbox a new row

get appeared Visible containing two textboxes

one for his firstname & another fior his last name .

in the same way on seleceting the value 2, or 3, or 4, or 5 in

the adult selectionbox ,

new 2,3,4, or 5 rows get appeared Visible containing two textboxes

each, depending on selection & also get hidden depend on

selection .

In the same manner On selecting the values in the no.of child

selectionbox , new rows containing two text boxes get

appeared Visible & get hidden depending on selection .

when value max. value(5) is selected in both select box ,

then max.no.of rows (10) are appeared Visible, (5) for each selectbox.


But the problem arises is that When less than the max. no. is

selected in both the selectboxes, the space between the

less no. of visible new rows for adult name & new rows for child name remain

expanded same as at the time of max. rows were visible .


Is there any way so that the gap between the new rows

also get adjusted on depending on selection .


any suggestion will be appreciated .


Thanks & Regards .