<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. 在双列表框中移动项目

        时间:2023-10-07
        • <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]);
                      }
                  
                   }
                  

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

                  上一篇:WinForms ListBox 控件上的多行列表项? 下一篇:在更新面板的列表框中保持滚动位置,而不是页面

                  相关文章

                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'>

                    <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>