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