i would like to change the text in my checkboxlist text by appending a text “new”. So the new checkboxes are “onenew” and “twonew”?
var resultaat = $("label[for^=CheckBoxList1]").get().split();
$.each(resultaat, function () {
//how to append 'new' to the values?
});
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem>one</asp:ListItem>
<asp:ListItem>two</asp:ListItem>
</asp:CheckBoxList>
Use the following line instead of
var resultaat ... });.Or (as an alternative method):