久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <bdo id='A4mge'></bdo><ul id='A4mge'></ul>

      <tfoot id='A4mge'></tfoot>

        <small id='A4mge'></small><noframes id='A4mge'>

        <legend id='A4mge'><style id='A4mge'><dir id='A4mge'><q id='A4mge'></q></dir></style></legend>

        <i id='A4mge'><tr id='A4mge'><dt id='A4mge'><q id='A4mge'><span id='A4mge'><b id='A4mge'><form id='A4mge'><ins id='A4mge'></ins><ul id='A4mge'></ul><sub id='A4mge'></sub></form><legend id='A4mge'></legend><bdo id='A4mge'><pre id='A4mge'><center id='A4mge'></center></pre></bdo></b><th id='A4mge'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A4mge'><tfoot id='A4mge'></tfoot><dl id='A4mge'><fieldset id='A4mge'></fieldset></dl></div>

      1. 如何使用 jquery 驗證插件驗證名稱中帶有點的輸入

        How to validate input fields with a dot in name using the jquery validation plugin?(如何使用 jquery 驗證插件驗證名稱中帶有點的輸入字段?)
              <tbody id='oaAZ8'></tbody>
          • <legend id='oaAZ8'><style id='oaAZ8'><dir id='oaAZ8'><q id='oaAZ8'></q></dir></style></legend>

          • <i id='oaAZ8'><tr id='oaAZ8'><dt id='oaAZ8'><q id='oaAZ8'><span id='oaAZ8'><b id='oaAZ8'><form id='oaAZ8'><ins id='oaAZ8'></ins><ul id='oaAZ8'></ul><sub id='oaAZ8'></sub></form><legend id='oaAZ8'></legend><bdo id='oaAZ8'><pre id='oaAZ8'><center id='oaAZ8'></center></pre></bdo></b><th id='oaAZ8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oaAZ8'><tfoot id='oaAZ8'></tfoot><dl id='oaAZ8'><fieldset id='oaAZ8'></fieldset></dl></div>

            <tfoot id='oaAZ8'></tfoot>
                <bdo id='oaAZ8'></bdo><ul id='oaAZ8'></ul>

                <small id='oaAZ8'></small><noframes id='oaAZ8'>

                  本文介紹了如何使用 jquery 驗證插件驗證名稱中帶有點的輸入字段?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 這個 jquery 驗證插件

                  <s:textfield cssClass="form-control input-default" name="contest.title" id="title" placeholder="Enter Title"
                                               />
                  

                  驗證對此不起作用,但如果我將名稱更改為 title - 驗證有效.

                  Validation doesn't work for this, but if I change the name to title - validation works.

                  我嘗試搜索,但找不到驗證名稱中帶有 . 的字段的方法.

                  I tried searching, but couldn't find a means to validate fields with a . in their name.

                  請幫忙

                  更新

                  腳本

                  <script type="text/javascript">
                              jQuery(document).ready(function() {
                                  jQuery("#contestform").validate({
                                      submitHandler: function(form) {
                  //                        return false;  // block the default submit action
                                      },
                                      rules: {
                                          title: {
                                              required: true
                                          },
                                          link: {
                                              required: true
                                          },
                                          startdt: {
                                              required: true
                                          },
                                          enddt: {
                                              required: true
                                          },
                                          descr: {
                                              required: true
                                          },
                                      },
                                      messages: {
                                          title: "Please enter a title",
                                          link: "Please enter the sponser redirection link",
                                          startdt: "Please select start date",
                                          enddt: "Please select end date",
                                          descr: "Please enter description"
                                      }
                                  });
                              });
                          </script>
                  

                  表格的一部分

                  <form action="" enctype="multipart/form-data" method="post" id="contestform">
                              <s:hidden name="option" value="option"/>
                              <s:hidden name="contest.idcontest"/>
                              <div class="form-group">
                                  <label for="title">Title</label>
                                  <s:textfield cssClass="form-control input-default" name="contest.title" id="title" placeholder="Enter Title"
                                               />
                              </div>
                  

                  推薦答案

                  你需要把字段名放在qoutes中.來自 插件文檔

                  You need to put the field names in qoutes. From the plugin documentation

                  名稱復雜的字段(括號、點)

                  Fields with complex names (brackets, dots)

                  當你有一個像 user[name] 這樣的 name 屬性時,確保把引號中的名稱.一般準則中的更多詳細信息.

                  When you have a name attribute like user[name], make sure to put the name in quotes. More details in the General Guidelines.

                  鏈接參考中的示例:

                  $("#myform").validate({
                    rules: {
                      // no quoting necessary
                      name: "required",
                      // quoting necessary!
                      "user[email]": "email",
                      // dots need quoting, too!
                      "user.address.street": "required"
                    }
                  });
                  

                  這篇關于如何使用 jquery 驗證插件驗證名稱中帶有點的輸入字段?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                • <i id='ZTZu8'><tr id='ZTZu8'><dt id='ZTZu8'><q id='ZTZu8'><span id='ZTZu8'><b id='ZTZu8'><form id='ZTZu8'><ins id='ZTZu8'></ins><ul id='ZTZu8'></ul><sub id='ZTZu8'></sub></form><legend id='ZTZu8'></legend><bdo id='ZTZu8'><pre id='ZTZu8'><center id='ZTZu8'></center></pre></bdo></b><th id='ZTZu8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZTZu8'><tfoot id='ZTZu8'></tfoot><dl id='ZTZu8'><fieldset id='ZTZu8'></fieldset></dl></div>
                    <bdo id='ZTZu8'></bdo><ul id='ZTZu8'></ul>
                      <tbody id='ZTZu8'></tbody>

                    <small id='ZTZu8'></small><noframes id='ZTZu8'>

                      <tfoot id='ZTZu8'></tfoot>
                    1. <legend id='ZTZu8'><style id='ZTZu8'><dir id='ZTZu8'><q id='ZTZu8'></q></dir></style></legend>

                            主站蜘蛛池模板: 亚洲国产一区在线 | 永久免费av| 最新中文字幕在线播放 | 中文字幕在线观看第一页 | 成人激情视频在线观看 | 亚洲欧美日韩在线一区二区 | 91香蕉视频在线观看 | 人成在线视频 | 国产精品美女久久久久aⅴ国产馆 | 国产一级电影在线观看 | 欧美日韩在线观看视频网站 | www.夜夜骑 | 伊人导航| 日日草天天干 | 日本不卡一区二区三区 | 欧美男人天堂 | 欧美精品一区二区三区四区 在线 | 天天色天天色 | 91中文字幕在线观看 | 99精品视频一区二区三区 | 国产91成人 | 久久久国产一区二区三区 | 欧美精品99| 亚洲成人av | 玖玖综合在线 | 色天天综合| 国产精品99久久久久久动医院 | 99视频在线免费观看 | 午夜影院网站 | 国产精品免费小视频 | 日韩欧美在线视频 | 亚洲午夜精品一区二区三区他趣 | 在线观看成人免费视频 | 国产不卡在线 | 亚洲一区久久 | 精品国产免费一区二区三区演员表 | 91精品国产乱码久久久久久久 | 国产乱码精品1区2区3区 | 在线精品一区二区 | 精品无码久久久久久国产 | 韩国电影久久 |