In a php script I have built, I have a drop down menu which each option is populated by the variable name and then the variable type. This works well, however, my client would like the variable names to all show up left aligned, and the variable types to be aligned as well for clarity of viewing.
If I could make each <option> a table row, I could make this happen thus..
<select name="select">
<option value="first val"><table><tr><td align="left">variable name1</td><td align="left">variable type1</td></tr></table></option>
<option value="second val"><table><tr><td align="left">variable name2</td><td align="left">variable type2</td></tr></table></option>
<option value="third val"><table><tr><td align="left">variable name3</td><td align="left">variable type3</td></tr></table></option>
</select>
Of course this won't work, but it illustrates what I am trying to do.
Can javascript offer me anything that could handle this?
Thanks!
If I could make each <option> a table row, I could make this happen thus..
<select name="select">
<option value="first val"><table><tr><td align="left">variable name1</td><td align="left">variable type1</td></tr></table></option>
<option value="second val"><table><tr><td align="left">variable name2</td><td align="left">variable type2</td></tr></table></option>
<option value="third val"><table><tr><td align="left">variable name3</td><td align="left">variable type3</td></tr></table></option>
</select>
Of course this won't work, but it illustrates what I am trying to do.
Can javascript offer me anything that could handle this?
Thanks!