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

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

    1. <i id='kCAj8'><tr id='kCAj8'><dt id='kCAj8'><q id='kCAj8'><span id='kCAj8'><b id='kCAj8'><form id='kCAj8'><ins id='kCAj8'></ins><ul id='kCAj8'></ul><sub id='kCAj8'></sub></form><legend id='kCAj8'></legend><bdo id='kCAj8'><pre id='kCAj8'><center id='kCAj8'></center></pre></bdo></b><th id='kCAj8'></th></span></q></dt></tr></i><div id='kCAj8'><tfoot id='kCAj8'></tfoot><dl id='kCAj8'><fieldset id='kCAj8'></fieldset></dl></div>
      <tfoot id='kCAj8'></tfoot>
    2. <legend id='kCAj8'><style id='kCAj8'><dir id='kCAj8'><q id='kCAj8'></q></dir></style></legend>
      1. 在双列表框中移动项目

        Moving items in Dual Listboxes(在双列表框中移动项目)
        • <tfoot id='vmc84'></tfoot>
        • <small id='vmc84'></small><noframes id='vmc84'>

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

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

              • <bdo id='vmc84'></bdo><ul id='vmc84'></ul>

                  本文介绍了在双列表框中移动项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 ASP.NET 中使用 JavaScript 将项目从一个列表框控件移动到另一个列表框控件?

                  How can I move items from one list box control to another listbox control using JavaScript in ASP.NET?

                  推荐答案

                  此代码假定您有一个锚点,或者当它被点击时会触发移动:

                  This code assumes that you have an anchor or that will trigger to movement when it is clicked:

                  document.getElementById('moveTrigger').onclick = function() {
                  
                      var listTwo = document.getElementById('secondList');
                      var options = document.getElementById('firstList').getElementsByTagName('option');
                  
                      while(options.length != 0) {
                          listTwo.appendChild(options[0]);
                      }
                  
                   }
                  

                  这篇关于在双列表框中移动项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  How do I get at the listbox item#39;s quot;keyquot; in c# winforms app?(如何获取列表框项目的“键?在 c# winforms 应用程序中?)
                1. <i id='Vp4YR'><tr id='Vp4YR'><dt id='Vp4YR'><q id='Vp4YR'><span id='Vp4YR'><b id='Vp4YR'><form id='Vp4YR'><ins id='Vp4YR'></ins><ul id='Vp4YR'></ul><sub id='Vp4YR'></sub></form><legend id='Vp4YR'></legend><bdo id='Vp4YR'><pre id='Vp4YR'><center id='Vp4YR'></center></pre></bdo></b><th id='Vp4YR'></th></span></q></dt></tr></i><div id='Vp4YR'><tfoot id='Vp4YR'></tfoot><dl id='Vp4YR'><fieldset id='Vp4YR'></fieldset></dl></div>

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

                    <tbody id='Vp4YR'></tbody>

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

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