我是HTML新手。我想要在html中完成以下操作。如何鏈接html表單和定位標記
if(link is clicked) {
process one form tag
}
else {
some other form tag
}
this is my form tag .
<form name="input" action="abc.pl" method="get" id="sel">
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>
我想一個鏈接,例如,如果我點擊上面的表格輸入(我指的複選框值)應採取和鏈接應該處理的動作與另一名.pl文件...
你說的 「過程」 是什麼意思?你想有條件地提交表格嗎? –
是@UmairHafeez – user3095218
[如何通過單擊鏈接提交JavaScript表單](http://stackoverflow.com/questions/6799533/how-to-submit-a-form-with-javascript-by點擊鏈接) –