1
我在其中一個web應用程序中有一個checkboxlist控件。我想用JavaScript來處理SelectedIndexChanged事件。使用javascript獲取SelectedIndexChanged複選框列表事件
複選框列表就像
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem>Two</asp:ListItem>
<asp:ListItem>Three</asp:ListItem>
<asp:ListItem>Four</asp:ListItem>
<asp:ListItem>Five</asp:ListItem>
</asp:CheckBoxList>
我怎樣才能使用javascript SelectedIndexChanged事件?
謝謝期待你的答覆。 – MithunRaj 2012-03-20 03:59:13
是的,我可以用這個獲得複選框列表事件。 此外,我的用戶界面中有一個複選框,所以我使用相同的onclick來獲取複選框事件。但是當選中複選框時,我沒有收到此事件。我們是否應該爲複選框使用不同的事件? – MithunRaj 2012-03-22 02:25:18