jQWidgets Forums
jQuery UI Widgets › Forums › Lists › ListBox › checkChange() Event is not working
Tagged: LISTBOX checkChange
This topic contains 1 reply, has 2 voices, and was last updated by Peter Stoev 12 years, 11 months ago.
-
Author
-
$(document).ready(function () {
var theme = getTheme();
var source = [
“Affogato”,
“Americano”,
“Bicerin”,
“Breve”,
“Café Bombón”,
“Café au lait”,
“Caffé Corretto”,
“Café Crema”,
“Caffé Latte”,
“Caffé macchiato”,
“Café mélange”,
“Coffee milk”,
“Cafe mocha”,
“Cappuccino”,
“Carajillo”,
“Cortado”,
“Cuban espresso”,
“Espresso”,
“Eiskaffee”,
“The Flat White”,
“Frappuccino”,
“Galao”,
“Greek frappé coffee”,
“Iced Coffee”,
“Indian filter coffee”,
“Instant coffee”,
“Irish coffee”,
“Liqueur coffee”
];
// Create a jqxListBox
$(“#listbox”).jqxListBox({ source: source, checkboxes: true, width: 200, height: 250, theme: theme });
// Check several items.
$(“#listbox”).jqxListBox(‘checkIndex’, 0);
$(“#listbox”).jqxListBox(‘checkIndex’, 1);
$(“#listbox”).jqxListBox(‘checkIndex’, 2);
$(“#listbox”).jqxListBox(‘checkIndex’, 5);
$(“#listbox”).bind(‘checkChange’, function (event) {
var args = event.args;
if (args.checked) {
$(“#Events”).html(“Checked: ” + args.label);
}
else {
$(“#Events”).html(“Unchecked: ” + args.label);
}
});
});I have implemented the above provided demo code. But the checkChange event is not working. Please provide me some information
Hi mohan raj,
The ‘checkChange’ event works on our Online Demo here: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlistbox/checkboxes.htm?classic
The version is the latest one – jQWidgets 2.2. Please check whether you use the same version.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.