In my web app I have a line which looks like this:
small textbox large textbox select list
I have a method which is boolean. If it returns false, I need to make the upper line look like this:
small textbox select list
large textbox
Basically, I need to add a second line with the large textbox.
How to do this?
Here is some code:
<div>
<input style="width:25px; top:0px; left:0px; margin:0px; background:white;" type="text" />
<input style="width:100%; top:0px; left:150px; margin:0px; background:white; float:left;" />
<select style="width:60px;">
<option value="0">a</option>
<option value="1">b</option>
</select>
</div>
Try this demo
Hope this helps. Just replace the if conditions. This is not update with the new code you posted.