Summary of EasyUI form elements and easyui form elements
I. easyui-textbox text box
Definition:
<input id="<span style="font-size:18px;">inputName</span>" class="easyui-textbox" type="text" />
Value: $ ('# inputname'). textbox ('gettext ');
Value assignment: $ ('# inputname'). textbox ('settext', 'liang ');
Ii. easyui-combobox drop-down box
Definition:
<input id="<pre name="code" class="javascript">inputType
"Class =" easyui-combobox "data-options =" required: true, panelHeight: 60 "/>
Initialization
$ ('# InputType '). combobox ({data: getDictionaryDatas (). type, valueField: 'value', textField: 'label', missingMessage: messageCreator (ValidateMessage. msg_request_field, 'type ')});
Value: $ ('# inputtype'). combobox ('getvalue ');
Value assignment: $ ('# inputtype'). combobox ('setvalue', 1 );
Iii. easyui-numberspinner number
Definition:
<input id="ss" class="easyui-numberspinner" style="width:80px;" required="required" data-options="min:10,max:100,editable:false">
Valid value:
var v = $('#ss').numberspinner('getValue');
Assignment:
$('#ss').numberspinner('setValue', 8234725);
4. datebox date
Definition:
<input type="text" name="nn" id="nn" class="easyui-datebox" data-options="formatter:myDate.InitDateBox.formatter,parser:myDate.InitDateBox. parser" />
Assignment:
$("#SC001_CERTIFICATEVALID").datebox('setValue', '2014-9-12');
Valid value:
$('#nn').datebox('getValue'),
V. Single region
Definition
<Td height = "30" colspan = "5"> <input type = "radio" name = "APPLYDEPTTYPE" value = "Legal Representative" checked = "checked"/> legal representative <input type = "radio" name = "APPLYDEPTTYPE" value = "corporate legal representative"/> corporate legal representative <input type = "radio" name = "APPLYDEPTTYPE" value = "corporate legal representative" /> Community Legal Representative <input type = "radio" name = "APPLYDEPTTYPE" value = "other"/> others </td>
Assignment:
var str = result.APPLYDEPTTYPE; $("[value='" + str + "']").attr("checked", true);
Valid value:
$('input[name="APPLYDEPTTYPE"]:checked').val()