0
我有一個按鈕,我需要在提交,當我點擊提交,我得到按鈕值不來了類型爲提交提交
http://localhost:xxxxx/add?dashname=1&tabname=2&dashtype=Local
但我需要
http://localhost:xxxxx/add?dashname=1&tabname=2&dashtype=Local&dashicon=fa-plus
<div class="form-group">
<div class="col-lg-2 col-md-3 col-sm-4">
<label for="dashicon" class="control-label">Icon</label>
</div>
<div class="col-lg-10 col-md-9 col-sm-8">
<button id="icondash" type="submit" data-toggle="dropdown" name="dashicon" style="text-align: left;" value="fa-plus" class="btn btn-default dropdown-toggle form-control"><i class="fa fa-plus"></i><span>Add1 </span><i class="fa fa-caret-down"></i>
</button>
<ul role="menu" style="text-align: left;" class="dropdown-menu animation-slide">
<li class="dashicon"><a href="javascript:void(0)"><i class="fa fa-plus"></i><span>Add1</span></a>
</li>
<li class="dashicon"><a href="javascript:void(0)"><i class="fa fa-pencil"></i><span>Add2</span></a>
</li>
<li class="dashicon"><a href="javascript:void(0)"><i class="fa fa-print"></i><span>Add3</span></a>
</li>
<li class="dashicon"><a href="javascript:void(0)"><i class="fa fa-times"></i><span>Add4</span></a>
</li>
</ul>
</div>
</div>
<div class="form-footer col-lg-offset-2 col-md-offset-3 col-sm-offset-4">
<button id="createdash" type="submit" class="btn btn-primary">Create</button>
<button id="canceldash" type="submit" class="btn btn-default">Cancel</button>
</div>
當我把這個代碼在我的電腦其顯示這個當我點擊提交**?dashicon = FA-加#**你能解釋你想要什麼嗎? –
你需要圍繞你的代碼與表單標籤與把你這個目標是不可能的任務5:D –
這個表單組是在裏面