jQuery UI Widgets Forums Lists ListBox jqxDropDownList events API docs

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxDropDownList events API docs #89722

    carpii
    Participant

    1) Please could you explain the difference between the ‘select’ and ‘change’ events, on jqxDropDownList?
    The API docs appear to contain exactly the same description, its not clear which event I should handle.

    2) Should the change or select event fire, if I programatically update the listboxes value or selectedIndex?

    
    $("#list").jqxDropDownList.val(x);
    $("#list").jqxDropDownList({selectedIndex: 2 });
    

    3) Is there any difference at all between calling

    
    $("#list").jqxDropDownList('selectIndex', 2 );
    vs
    $("#list").jqxDropDownList({selectedIndex: 2 });
    

    Thanks

    jqxDropDownList events API docs #89762

    Hristo
    Participant

    Hello carpii,

    When changing the value of the DropDownList it is fire the both events, but if you use arrows (up/down) and highlight different items this will fire ‘select’ event.
    The easiest way to understand the difference between them is to use in the one example both.

    Best Regards,
    Hristo Hristov

    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.