<div id="editForm1" style="padding:5px;">
<input class="mini-hidden" name="id"/>
<input class="mini-hidden" name="distributer" value="ZQAD0001" />
<table style="width:100%;">
<tr>
<td style="width:80px;">参与活动号码:</td>
<td style="width:150px;"><input id="user_number" name="user_number" class="mini-textbox" /></td>
</tr>
<tr>
<td>选择参与活动:</td>
<td><input id="activity_id" name="activity_id" class="mini-combobox" textField="name" valueField="id"/></td>
</tr>
<tr>
<td>选择活动礼品:</td>
<td><input id="gift_id" name="gift_id" class="mini-combobox" textField="name" valueField="id" /></td>
</tr>
<tr><td/><td><button id="saveButton" >确认</button></td></tr>
</table>
</div>
form = new mini.Form('#editForm1');
$('#saveButton').on('click', function() {
var json, o;
o = form.getData();
json = mini.encode(o);
alert('Save record.\n' + JSON.stringify(o));
});
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) | Powered by Discuz! X2 |