0

创建表单时如何取消所有div?默认值:

<form action="/services/edit/1" class="vertical___" id="ServiceEditForm" method="post" accept-charset="utf-8"><div style="display:none;">
<input type="hidden" name="_method" value="PUT"></div>  <fieldset>
<legend>Edit Service</legend>
<input type="hidden" name="data[Service][id]" value="1" id="ServiceId"><div class="input text required"><label for="ServiceName">Name</label><input name="data[Service][name]" maxlength="250" type="text" value="text-text" id="ServiceName"></div>    </fieldset>
<div class="submit"><input type="submit" value="Submit"></div></form>

必须具备:

<form action="/services/edit/1" class="vertical" id="ServiceEditForm" method="post" accept-charset="utf-8">
<input type="hidden" name="_method" value="PUT">    
<fieldset>
<legend>Edit Service</legend>
<input type="hidden" name="data[Service][id]" value="1" id="ServiceId"><div class="input text required"><label for="ServiceName">Name</label>
<input name="data[Service][name]" maxlength="250" type="text" value="text-text" id="ServiceName"></div> </fieldset>
<input type="submit" value="Submit"></form>
4

0 回答 0