Home > Web Front-end > JS Tutorial > body text

Summary of form submission methods using javascript_javascript skills

WBOY
Release: 2016-05-16 15:52:45
Original
1099 people have browsed it

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>

Copy after login

can be written in the following ways:

1.

Submit

2.

Submit

3.

Submit

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template