No more nonsense, let’s get straight to the content.
<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>
can be written in the following ways:
1.
2.
3.
The above is a summary of several methods for you. I hope it will be helpful to everyone in learning js.