Some code is as follows:
Copy codeThe Code is as follows:
<Form id = "fm" method = "post" novalidate>
<Div style = "height: 26px" class = "fitem">
<Label> region: </label>
<Input class = "easyui-combobox"
Id = "areaId"
Name = "areaId"
Url = "getAreasList" // you can obtain data from the background.
ValueField = "id"
TextField = "name"
PanelHeight = "auto"
/>
</Div>
<Div style = "height: 26px" class = "fitem">
<Label> name: </label>
<Input id = "devName" name = "name" class = "easyui-validatebox" missingMessage = "Do Not Allow null" required = "true"/>
</Div>
Omitted later
Some js Code
Copy codeThe Code is as follows:
<Pre code_snippet_id = "229232" snippet_file_name = "feature" name = "code" class = "html"> <pre code_snippet_id = "229232" snippet_file_name = "feature" name = "code" class = "html"> var row = $ ('# dg '). datagrid ('getselected ');
</Pre>
<Pre> </pre>
<Pre code_snippet_id = "229232" snippet_file_name = "blog_20140311_2_8342494" name = "code" class = "html"> $ ('# fs'). form ('load', row );
Fm: form tag id
Row: the obtained data is an object, and one data item is selected in easyui.
<Input name = "row attribute name"/>
</Pre> <br>
<Pre> </pre>
<Br>
<Br>
</Pre>