dr_csharp
شنبه 15 تیر 1387, 16:51 عصر
سلام.چطور میتونم آیتم های Checked شده ی یک CheckBoxList در VS2008 رو بصورت کلاینتی (با استفاده از JavaScript ) پیدا کنم ؟
<asp:CheckBoxListID="CheckBoxList1"runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:CheckBoxList>
نمیشه ChildNodes یا یه چیز مشابه اونو پیدا کرد و یکی یکی Selected بودن اونارو بررسی کرد ؟
var k= document.getElementById('CheckBoxList1').childNode s;
<asp:CheckBoxListID="CheckBoxList1"runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:CheckBoxList>
نمیشه ChildNodes یا یه چیز مشابه اونو پیدا کرد و یکی یکی Selected بودن اونارو بررسی کرد ؟
var k= document.getElementById('CheckBoxList1').childNode s;