国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

使用javascript提交form表單方法匯總

2019-11-02 15:54:14
字體:
供稿:網(wǎng)友

   這篇文章主要介紹了通過a標(biāo)簽的超鏈接提交form表單方法匯總,十分的全面細(xì)致,也很實(shí)用,有需要的小伙伴可以參考下。

  廢話就不多說了,直接上內(nèi)容。

  ?

1 2 3 4 5 6 7 8 <form action="/home/search" method="get" id="search_form"> <div class="searchBox png" id="sear
陽光電影網(wǎng)[www.aikan.tv/special/yangguangdianyingwang/]
chBox"> <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>

 有以下幾種寫法:

1.

<a class="searchPic h-submitBtn png" id="h-submitBtn" onclick="document:search_form.submit();">提交</a>

2.

<a href="javascript:document:search_form.submit();">提交</a>

3.

<a class="searchPic h-submitBtn png" id="h-submitBtn" onclick="document.getElementById('search_form').submit();">提交</a>

       以上就是給大家匯總的幾種方法了,希望對(duì)大家學(xué)習(xí)js能夠有所幫助。

 

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 武汉市| 临朐县| 曲阜市| 沙河市| 黎平县| 互助| 苍梧县| 汶川县| 铁岭市| 朝阳区| 乐至县| 焦作市| 道真| 星子县| 贺兰县| 南京市| 阳新县| 夏邑县| 潼南县| 英吉沙县| 宿松县| 巨野县| 陕西省| 南岸区| 蕲春县| 高淳县| 临安市| 呼和浩特市| 星子县| 措美县| 定陶县| 德格县| 桓仁| 石城县| 邓州市| 怀化市| 县级市| 彰武县| 古交市| 娱乐| 永吉县|