jQuery UI Widgets Forums General Discussions Lists ListBox Adding ID and Value to CheckBox

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Adding ID and Value to CheckBox #70509

    Fiham
    Participant

    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
    });

    Adding ID and Value to CheckBox #70574

    ivailo
    Participant

    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.

    You can check items with $("#jqxListBox").jqxListBox('checkItem', item );.
    For example see this fiddle.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.