Home >Web Front-end >JS Tutorial >Summary of form submission methods using javascript_javascript skills

Summary of form submission methods using javascript_javascript skills

WBOY
WBOYOriginal
2016-05-16 15:52:451109browse

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.

8418a70595cabe47831a30a3485d8f26Submit5db79b134e9f6b82c0b36e0489ee08ed

2.

7d98f92113cb3592a5d44ab77ae31551Submit5db79b134e9f6b82c0b36e0489ee08ed

3.

d577a0b94682f3e801e990b7542992daSubmit5db79b134e9f6b82c0b36e0489ee08ed

The above is a summary of several methods for you. I hope it will be helpful to everyone in learning js.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn