Hi.. thanks for your help.
ASP.Net DropDownCheckBoxes: Change default select text in jQuery
But something went wrong when i have more than 1 dropdwoncheckboxes.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var select = $("[id*=DropDownCheckBoxes1] [id*=caption]");
if (select != null) {
select.html("Select Category");
}
var selectAll = $("[id*=checks] span").eq(0).find('label');
if (selectAll != null) {
selectAll.html("Select All Categories");
}
var select = $("[id*=DropDownCheckBoxes2] [id*=caption]");
if (select != null) {
select.html("Select Fruit");
}
var selectAll = $("[id*=checks] span").eq(0).find('label');
if (selectAll != null) {
selectAll.html("Select All Fruits");
}
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc4:DropDownCheckBoxes ID="DropDownCheckBoxes1" runat="server" Width="180px" UseSelectAllNode="True">
<Style SelectBoxWidth="195" DropDownBoxBoxWidth="160" DropDownBoxBoxHeight="90" />
<Items>
<asp:ListItem Text="Local"></asp:ListItem>
<asp:ListItem Text="Oversea"></asp:ListItem>
</Items>
</cc4:DropDownCheckBoxes>
<cc4:DropDownCheckBoxes ID="DropDownCheckBoxes2" runat="server" Width="180px" UseSelectAllNode="True">
<Style SelectBoxWidth="195" DropDownBoxBoxWidth="160" DropDownBoxBoxHeight="90" />
<Items>
<asp:ListItem Text="Mango"></asp:ListItem>
<asp:ListItem Text="Apple"></asp:ListItem>
<asp:ListItem Text="Banana"></asp:ListItem>
</Items>
</cc4:DropDownCheckBoxes>
</div>
</form>
</body>
</html>