jQuery UI Widgets Forums Editors MaskedInput Focusing jqxMaskedInput

Tagged: 

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Focusing jqxMaskedInput #12436

    Michael76
    Member

    Hi,

    How is it possible to set focus on jqxMaskedInput?
    I tried the following code:

    $(“#myMaskedInput”).find(‘input’).focus();

    It’s almost OK, the element gets focus, but the text cursor now is not at the beginning of the text mask but at the end. Is it possible to put it to the beginning? Or alternatively select the whole text?

    Focusing jqxMaskedInput #12438

    Peter Stoev
    Keymaster

    Hi Michael76,

    There’s currently no API for selecting the whole text, moving the Caret or focusing the MaskedInput. I will create a work item about the missing functionality.

    Best Wishes,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Focusing jqxMaskedInput #30837

    chart
    Member

    Hi Peter,

    Has this been addressed yet? Or is there a way to select the text when the control is empty and gets the focus? I would like to use the Masked Input control but have a requirement that the user be able to click in the control and start typing. It seems that the cursor ends up at the end of the mask where no input can occur and must click again or press left key to get to the beginning of the mask.

    Charles

    Focusing jqxMaskedInput #30844

    Peter Stoev
    Keymaster

    Hi Charles,

    MaskedInput not is initialized from Input tag so you can select it with jQuery and call the jQuery’s “focus” method to put the focus to the input tag.

    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.