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

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

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

        Bootstrap 雙列表框和單選,在 jquery 中使用添加/刪

        Bootstrap Dual listbox and single select with fetching values in alert with add/delete/close option in jquery(Bootstrap 雙列表框和單選,在 jquery 中使用添加/刪除/關(guān)閉選項(xiàng)在警報(bào)中獲取值) - IT屋-程序員軟件開(kāi)發(fā)技

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

              • <tfoot id='m26b2'></tfoot>

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

                  <bdo id='m26b2'></bdo><ul id='m26b2'></ul>
                    <tbody id='m26b2'></tbody>
                • 本文介紹了Bootstrap 雙列表框和單選,在 jquery 中使用添加/刪除/關(guān)閉選項(xiàng)在警報(bào)中獲取值的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  請(qǐng)任何人幫我解決這個(gè)問(wèn)題.

                  Can you please anyone help me how to solve this issue.

                  Bootstrap 有雙列表框選項(xiàng),只有單選/多選.

                  Bootstrap have dual listbox option with single/multiple select only.

                  我需要帶有單選的雙列表框.

                  I need dual listbox with single select.

                  說(shuō)明:

                  例如:

                  我有雙列表框,左列表框有 5 個(gè)選項(xiàng).我需要單選.(即)如果我在左側(cè)列表框中選擇單個(gè)選項(xiàng),它會(huì)顯示彈出(警報(bào))并獲取相應(yīng)的字段值,并且彈出窗口有添加取消 按鈕添加/取消值.單擊彈出窗口中的添加選項(xiàng)后,它將添加到右側(cè)列表框中.

                  I have dual listbox,left listbox have 5 options. I need single select.(i.e) If i select the single option in the left listbox, it shown popup(alert) with fetching the respective field values and also the popup have Add or Cancel button to add/cancel the values.After clicking the add option in popup it will be added in right list box.

                  如果我選擇右側(cè)列表框中的選項(xiàng),它再次顯示彈出(警報(bào))并獲取相應(yīng)的字段值,并且彈出窗口有 DeleteCancel 按鈕刪除/取消右側(cè)列表框中的值.

                  And if i select the option in right listbox , again it shown popup(alert) with fetching the respective field values and also the popup have Delete or Cancel button to delete/cancel the values in the right listbox.

                  請(qǐng)任何人解決這個(gè)問(wèn)題,

                  Please any one give solution to this problem,

                  謝謝,

                  推薦答案

                  //Html
                  <select id="sel1">
                      <option value="1">1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                  </select>
                  <select id="sel2"></select>
                  //This is the JS
                  //On change of the first select
                  $('#sel1').on('change', function (e) {
                      e.preventDefault();
                      var selVal = $(this).val();
                      var selHtml = $(this).find('option:selected').text();
                      moveItem('#sel1', '#sel2', selVal, selHtml);//call our function
                  });
                  //On change of the second select
                  $('#sel2').on('change', function (e) {
                      e.preventDefault();
                      var selVal = $(this).val();
                      var selHtml = $(this).find('option:selected').text();
                      moveItem('#sel2', '#sel1', selVal, selHtml);//call our function
                  });
                  //Move function take 4 parameters
                  function moveItem(moveFrom, moveTo, selVal, selHtml) {
                      if (confirm("Are you sure? : " + selVal)) {//Confirm dialogue box comes up and on selecting 'ok' this part will be executed
                          $(moveTo).append('<option value="' + selVal + '">' + selHtml + '</option>');//append a value to select
                          var mId = moveFrom + ' option[value="' + selVal + '"]';
                          $(mId).remove();//remove value from the other select
                      }
                      return false;
                  }
                  

                  這篇關(guān)于Bootstrap 雙列表框和單選,在 jquery 中使用添加/刪除/關(guān)閉選項(xiàng)在警報(bào)中獲取值的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                  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 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)分
                  What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get(XMLHttpRequest、jQuery.ajax、jQuery.post、jQuery.get 有什么區(qū)別)
                  Can onprogress functionality be added to jQuery.ajax() by using xhrFields?(可以使用 xhrFields 將 onprogress 功能添加到 jQuery.ajax() 嗎?)
                  Show a progress bar for downloading files using XHR2/AJAX(顯示使用 XHR2/AJAX 下載文件的進(jìn)度條)
                    <tbody id='xhgAO'></tbody>
                  • <bdo id='xhgAO'></bdo><ul id='xhgAO'></ul>
                    1. <legend id='xhgAO'><style id='xhgAO'><dir id='xhgAO'><q id='xhgAO'></q></dir></style></legend>
                          <tfoot id='xhgAO'></tfoot>

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

                          1. <i id='xhgAO'><tr id='xhgAO'><dt id='xhgAO'><q id='xhgAO'><span id='xhgAO'><b id='xhgAO'><form id='xhgAO'><ins id='xhgAO'></ins><ul id='xhgAO'></ul><sub id='xhgAO'></sub></form><legend id='xhgAO'></legend><bdo id='xhgAO'><pre id='xhgAO'><center id='xhgAO'></center></pre></bdo></b><th id='xhgAO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xhgAO'><tfoot id='xhgAO'></tfoot><dl id='xhgAO'><fieldset id='xhgAO'></fieldset></dl></div>
                            主站蜘蛛池模板: 日本一区二区三区在线观看 | 久久日韩精品一区二区三区 | 中文字幕第二区 | 超碰成人免费观看 | 免费在线看黄视频 | 欧洲毛片 | 精品国产91 | 亚洲精品中文字幕在线观看 | 亚洲一区二区在线视频 | 亚洲九色 | 成人免费大片黄在线播放 | www.日本在线 | k8久久久一区二区三区 | 国产成人99久久亚洲综合精品 | 久久久蜜臀国产一区二区 | 精品国产乱码久久久久久老虎 | 国产第一亚洲 | 亚洲精品一二三区 | 91久久精品日日躁夜夜躁国产 | 91精品久久久久久久久中文字幕 | 国产精品毛片 | 中文字幕在线免费 | 免费三级网站 | 亚洲狠狠 | 国产欧美日韩视频 | 羞羞视频网站在线观看 | 成人高潮片免费视频欧美 | 日韩精品一区二区三区中文字幕 | av网站观看| 99re在线 | 国产精品国色综合久久 | 欧美精品综合在线 | 日韩精品三区 | 另类一区| 男女网站免费 | 农村妇女毛片精品久久久 | 国产精品欧美精品日韩精品 | 亚洲一区二区在线免费观看 | 午夜视频在线 | 国产97碰免费视频 | a毛片|