jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Get number selected item

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Get number selected item #51024

    Hello,

    With the command item = $ (“# ListBox1”). JqxListBox (“GetSelectedItem”). Value I can get the contents of the object, but I would take the number of the object, as this is done?

    thank you!

    Get number selected item #51031

    Peter Stoev
    Keymaster

    Hi lsmarco1973,

    The provided code is invalid. There is no widget called JqxListBox. It is jqxListBox. Also there’s no method called “GetSelectedItem”, it is “getSelectedItem”. Note: Casing is sth. very important in JavaScript. The “getSelectedItems” method can be used for getting the items which are selected. The returned value is Array and each Array has “length” property which you can use for getting the items. Ex: http://jsfiddle.net/bg6kr/1/

    Best Regards,
    Peter Stoev

    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.