jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Focus on load

This topic contains 2 replies, has 3 voices, and was last updated by  Murthy 12 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Focus on load #9647

    myamoe
    Participant

    How can I set the numberInput box to be the “focus” on page Load? Normally I use a js function and use the id of the form input and set it to focus, but that doesn’t seem to work with the widget.

    Focus on load #9657

    Peter Stoev
    Keymaster

    Hi myamoe,

    Unfortunately, setting the focus of an input field is not currently supported. I’ll create a work item about adding a ‘focus’ method to the widget.

    Best Wishes,
    Peter Stoev

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Focus on load #14716

    Murthy
    Member

    Hi myamoe,

    you can also do it like this..

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

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

You must be logged in to reply to this topic.