We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Focus on numerictextbox

Thread ID:





132891 Sep 27,2017 10:48 AM UTC Sep 28,2017 12:44 PM UTC JavaScript 1
Tags: ejNumericTextbox
Asked On September 27, 2017 10:48 AM UTC


how to programatically set focus to numerictextbox?

Simple $("#SomeControl").focus(); doesen't work.

Ashokkumar Balasubramanian [Syncfusion]
Replied On September 28, 2017 12:44 PM UTC

Hi Semper,   
In our Numeric, Currency, Percentage Textboxes having two inputs (hidden and input element). Both the inputs are switching while interacting with the numeric textbox. Initially hidden Input is displayed to the user, while interact numeric textbox, element will be displayed. So, you can apply the jQuery focus on hidden input to focusing the Numeric Textbox. Please check the below code block.   
var numeric = $("#ejNumeric").ejNumericTextbox("instance");   
For your reference, we have prepared simple sample. Please check the sample in below playground location.   
Please let us know, if the provided information’s are helpful to achieve your requirement or not.  
Ashokkumar B.    


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon