Skip to content Skip to sidebar Skip to footer

Add A Drop Down In A Table Using Html

I am trying to add a drop down box in a table as a part of registration form. Here is my code below :-

Cab

Solution 1:

its because you have put "Online Password (Repeated)" text and drop down in a same column td

and the second TD is blank..

<TR><TDclass = "select">Online Password (Repeated) 
    <select><optionvalue="volvo">Volvo</option><optionvalue="saab">Saab</option><optionvalue="mercedes">Mercedes</option><optionvalue="audi">Audi</option></select><TDALIGN="center"></TD></TD></TR>

replace above code with below

<TR><TDclass = "select">Online Password (Repeated)         
    </TD><TDALIGN="center"><select><optionvalue="volvo">Volvo</option><optionvalue="saab">Saab</option><optionvalue="mercedes">Mercedes</option><optionvalue="audi">Audi</option></select></TD></TR>

I hope u can now find where u made mistake

check the jsfiddle

Post a Comment for "Add A Drop Down In A Table Using Html"