• <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
  • <th id="l3qpx"><progress id="l3qpx"></progress></th>
      <th id="l3qpx"></th>
      <dd id="l3qpx"><font id="l3qpx"></font></dd>
      <th id="l3qpx"></th>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風信網(wǎng)絡(luò)科技有限公司微信公眾號

      當前位置:主頁 > 技術(shù)支持 > Javascript/JQuery > jQuery Form Plugin表單ajax提交插件

      jQuery Form Plugin表單ajax提交插件

      時間:2016-12-28來源:風信官網(wǎng) 點擊: 648次
      jQuery Form Plugin 能夠讓你簡潔的將以HTML形式提交的表單升級成采用AJAX技術(shù)提交的表單。插件里面主要的方法, ajaxForm 和 ajaxSubmit, 能夠從form組件里采集信息確定如何處理表單的提交過程。

      使用的API:http://malsup.com/jquery/form/#api

      使用示例代碼:

      <form id="myForm" action="comment.php" method="post">
          Name: <input type="text" name="name" />
          Comment: <textarea name="comment"></textarea>
          <input type="submit" value="Submit Comment" />
      </form>

      表單區(qū):

      <html>
      <head>
          <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
          <script src="http://malsup.github.com/jquery.form.js"></script>
       
          <script>
              // wait for the DOM to be loaded
              $(document).ready(function() {
                  // bind 'myForm' and provide a simple callback function
                  $('#myForm').ajaxForm(function() {
                      alert("Thank you for your comment!");
                  });
              });
          </script>
      </head>


      調(diào)用區(qū)域: 通過以上的使用,就可以實現(xiàn)表單Ajax技術(shù),是不是很簡單。
      熱門關(guān)鍵詞: jQuery Form Plugin 表單 ajax 提交插件
      欄目列表
      推薦內(nèi)容
      熱點內(nèi)容
      展開
      欧美一区二区三区免费A级视频,亚洲精品中文字幕综合,动漫精品中文字幕无码第一页,1024亚洲国产综合 亚太影院 柯西贝尔-游戏赚网
    1. <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
    2. <th id="l3qpx"><progress id="l3qpx"></progress></th>
        <th id="l3qpx"></th>
        <dd id="l3qpx"><font id="l3qpx"></font></dd>
        <th id="l3qpx"></th>