我想要在JavaScript函数中访问ListBox项 [英] I want Access ListBox Items In JavaScript Function

查看:76
本文介绍了我想要在JavaScript函数中访问ListBox项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

function Keydowned(t) {

     //How To Accsess Whole Items Of ListBox In This Section

   }


<input id="TextBox_Tag" type="text"  class="TextBox_Tag_Style" onkeydown="Keydowned(this)" />
                               <asp:ListBox ID="ListBox_Tag" runat="server" CssClass="ListBox_Tag_Position" ondblclick="DblClick(this)">
                                   <asp:ListItem>ab</asp:ListItem>
                                   <asp:ListItem>abc</asp:ListItem>
                                   <asp:ListItem>abcd</asp:ListItem>
                                   <asp:ListItem>ad</asp:ListItem>
                                   <asp:ListItem>abd</asp:ListItem>
                               </asp:ListBox>




非常感谢




thanks a lot

推荐答案

这应该给您一个想法
looping-through-listbox-items [ ^ ]
This should give you an idea
looping-through-listbox-items[^]


http://www.ehow. com/how_8575528_dynamically-change-listbox-javascript.html [ ^ ]
http://dotnetfarrukhakhabas.blogspot.com/2011/01/search-listbox- items-using-javascript.html [ ^ ]
http://www.pcreview.co.uk/forums/accessing-listbox- info-javascript-t1267229.html [ ^ ]
http://community.sgdotnet.org/blogs/triplez/archive/2005/07/11/18365.aspx [ ^ ]
http://www.ehow.com/how_8575528_dynamically-change-listbox-javascript.html[^]
http://dotnetfarrukhabbas.blogspot.com/2011/01/search-listbox-items-using-javascript.html[^]
http://www.pcreview.co.uk/forums/accessing-listbox-info-javascript-t1267229.html[^]
http://community.sgdotnet.org/blogs/triplez/archive/2005/07/11/18365.aspx[^]


这篇关于我想要在JavaScript函数中访问ListBox项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆