我有这个表格声明:
<form method="post" action="/web_services/buscar_vuelos?method=get">
<div id="addSegment_wrapper">
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="addTr" style="display: inline;">
<span class="ui-button-text">Add Segment</span>
</button>
</div>
<input id="web_services_submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button- text-only" type="submit" value="Search" name="commit">
</form>
而且,虽然我没有将“addSegment_wrapper”按钮指定为提交按钮,但每次我单击它时,它都会调用表单操作。我只想将此按钮视为常规按钮。
我该怎么办?
最佳答案
你可以做
<button type="button">Add Segment</button>
关于html - 在不执行提交的表单中添加常规按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6617212/