1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. jquery submit()不能提交表單的的原因

        時(shí)間:2020-11-11 11:05:22 jQuery Mobile 我要投稿

        jquery submit()不能提交表單的的原因

          復(fù)制代碼 代碼如下:

          用戶名:

          密碼:

          郵箱:

          改為

          $("#submit").click(function() {

          $("form").submit();

          });

          上述代碼點(diǎn)擊注冊(cè)按鈕時(shí)無(wú)法提交表單

          原因

          Additional Notes:

          Forms and their child elements should not use input names or ids that conflict with properties of a form, such as submit, length, or method. Name conflicts can cause confusing failures. For a complete list of rules and to check your markup for these problems, see DOMLint.

          其他注意事項(xiàng):

          表單和其子元素不宜用一個(gè)表單的屬性的屬性作為name或id的`名稱,如submit, length, or method,是、會(huì)產(chǎn)生沖突。名稱沖突可能會(huì)導(dǎo)致混亂的失敗。對(duì)于一個(gè)完整的規(guī)則列表,并檢查這些問題標(biāo)記,看DOMLint。

          所以將注冊(cè)按鈕的id改為“register”就OK了

        【jquery submit()不能提交表單的的原因】相關(guān)文章:

        1.jQuery簡(jiǎn)單的表單應(yīng)用

        2.jquery提交按鈕的代碼

        3.jQuery表單步驟流程

        4.淺談Ajax提交與傳統(tǒng)表單提交的區(qū)別說明

        5.php避免form表單重復(fù)提交

        6.講解如何讓php提交form表單

        7.jQuery獲取和設(shè)置表單元素的方法參考

        8.asp教程中g(shù)et post提交表單區(qū)別

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>