EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jega on July 25, 2017, 03:39:55 PM



Title: Using label
Post by: jega on July 25, 2017, 03:39:55 PM
Hi

If i have this line

<input id="test1" class="easyui-textbox" data-options=""><input id="test2" class="easyui-textbox" data-options="'">

It makes the two textboxes beside eachother, but when i add a label

<input id="test1" class="easyui-textbox" data-options="label:'Test1',labelPosition:'top'"><input id="test2" class="easyui-textbox" data-options="label:'Test2',labelPosition:'top'">

they are in two lines.

I need label and both in same line

Any help....



Title: Re: Using label
Post by: jarry on July 26, 2017, 05:24:10 PM
Please try this code:
Code:
<span style="display:inline-block">
<input id="test1" class="easyui-textbox" data-options="label:'Test1',labelPosition:'top'">
</span>
<span style="display:inline-block">
<input id="test2" class="easyui-textbox" data-options="label:'Test2',labelPosition:'top'">
</span>