jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList jqxDropDownList Add Class on Focus

This topic contains 1 reply, has 1 voice, and was last updated by  mdols 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxDropDownList Add Class on Focus #48704

    mdols
    Participant

    Is there a way to add/remove a class on focus/blur for a drop down list? I have tried the following, but the parent element with the tab index never seems to fire the focus event. The met-ui-focus class simply applies a shadow.

    $(‘.jqx-disableselect:parent’).on(‘focus’, function () {
    alert(‘setting focus’);
    $(this).addClass(‘met-ui-focus’);
    });
    $(‘.jqx-disableselect:parent’).on(‘blur’, function () {
    $(this).removeClass(‘met-ui-focus’);
    });

    Thank you,
    Mike

    jqxDropDownList Add Class on Focus #48705

    mdols
    Participant

    Please disregard, .jqx-fill-state-focus satisfies the requirement. Thank you, Mike

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

You must be logged in to reply to this topic.