jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox prevent the typing

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • prevent the typing #47276

    rani
    Participant

    hi peter,

    Is there any way to prevent user typing if words doesn’t match anything in the combox items?

    regards,
    rani

    prevent the typing #47279

    Peter Stoev
    Keymaster

    Hi Rani,

    It is possible to disable the typing and make the INPUT field read only.

    Example:

    $("#combo input").attr("readonly", true);
    

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    prevent the typing #47286

    rani
    Participant

    hello,

    user can allow to type text,

    prevent user typing if words doesn’t match anything in the listbox ?
    For example, if the item ‘komali’ is present in the listbox, the user can type ‘kom’ but not ‘komali’.

    regards,rani

    prevent the typing #47291

    Peter Stoev
    Keymaster

    Hi rani,

    That is unfortunately not possible. You may use the DropdownList instead if that is what you are looking for. It allows selection only of loaded items.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.