jQuery UI Widgets › Forums › General Discussions › Lists › ListBox › Adding ID and Value to CheckBox
Tagged: checkbox, ListBox
This topic contains 1 reply, has 2 voices, and was last updated by ivailo 10 years, 8 months ago.
I need to Add ID to CheckBoxes in List Box
<input type=”checkbox” name=”vehicle” id = 1>Code</br> <input type=”checkbox” name=”vehicle” id = 2>Select
once I select the CheckBox and I need to Get the CheckBox Id and I can also tick the CheckBox Based on ID how to Do????
But Here Cannot Add That
var source = [ “Affogato”, “CaffĂ© Latte”];
// Create a jqxListBox $(“#jqxListBox”).jqxListBox({ source: source, theme: ‘energyblue’, width: ‘200px’, height: ‘250px’, checkboxes:true });
Hi Fiham,
This widget don’t have option to Add ID to CheckBoxes.
You can get the checked elements with var items = $("#jqxListBox").jqxListBox('getCheckedItems');. For example see this fiddle.
var items = $("#jqxListBox").jqxListBox('getCheckedItems');
You can check items with $("#jqxListBox").jqxListBox('checkItem', item );. For example see this fiddle.
$("#jqxListBox").jqxListBox('checkItem', item );
Best Regards, Ivailo Ivanov
jQWidgets Team http://www.jqwidgets.com
You must be logged in to reply to this topic.