<script type="text/javascript">
var str='0,1';
var list = $('#<%= CheckBoxList1.ClientID%> input[type=checkbox]');
list.each(function (index) {
item = $(this);
if (str.indexOf(item.val()) != -1) {
item.attr('checked', true);
}
});
</script >
<asp:CheckBoxList ID="CheckBoxList1" runat="server" onclick="SetValue();" RepeatDirection="Horizontal">
<asp:ListItem Value="0" Text="Employee"></asp:ListItem>
<asp:ListItem Value="1" Text="Group Employee"></asp:ListItem>
<asp:ListItem Value="2" Text="Reporting Manager"></asp:ListItem>
<asp:ListItem Value="3" Text="Department Head"></asp:ListItem>
</asp:CheckBoxList>
var str='0,1';
var list = $('#<%= CheckBoxList1.ClientID%> input[type=checkbox]');
list.each(function (index) {
item = $(this);
if (str.indexOf(item.val()) != -1) {
item.attr('checked', true);
}
});
</script >
<asp:CheckBoxList ID="CheckBoxList1" runat="server" onclick="SetValue();" RepeatDirection="Horizontal">
<asp:ListItem Value="0" Text="Employee"></asp:ListItem>
<asp:ListItem Value="1" Text="Group Employee"></asp:ListItem>
<asp:ListItem Value="2" Text="Reporting Manager"></asp:ListItem>
<asp:ListItem Value="3" Text="Department Head"></asp:ListItem>
</asp:CheckBoxList>
Sign up here with your email

ConversionConversion EmoticonEmoticon