This article mainly introduces a label through the hyperlink submitted form form Method Summary, very comprehensive and meticulous, but also very practical, the need for small partners can refer to.
Nonsense is not much to say, directly on the content.
?
1 2 3 4 5 6 7 8 |
<form action= "/home/search" method= "Get" id= "Search_form" > <div class= "searchbox png" id= "SearchBox" > < Input type= "text" id= "Searchtxt" class= "Searchtxt" name= "Shopname" value= "@shopName" > <a class= "Searchpic" h-submitbtn png "id=" h-submitbtn "onclick=" Document:search_form.submit (); > </a> </div> </form> |
There are several ways to do this:
1.
<a class= "searchpic h-submitbtn png id=" h-submitbtn "onclick=" Document:search_form.submit (); " > Submit </a>
2.
<a href= "Javascript:document:search_form.submit ();" > Submit </a>
3.
<a class= "searchpic h-submitbtn png" id= "h-submitbtn" onclick= "document.getElementById" (' Search_form '). Submit (); " > Submit </a>
The above is for you to sum up several methods, I hope that you can learn JS to help.