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

Manually Set Focus

Thread ID:





123975 May 4,2016 03:34 PM UTC May 5,2016 09:57 AM UTC ASP.NET MVC 1
Tags: DropDownList
Matthew Shakespeare
Asked On May 4, 2016 03:34 PM UTC

Is there a way to manually set focus on a MVC DropDownLIst in Javascirpt , similar to standard 

$( "#target" ).focus();

Keerthana Rajendran [Syncfusion]
Replied On May 5, 2016 09:57 AM UTC

Hi Matthew,    
Thank you for contacting Syncfusion support,   
 Yes, we can set focus to DropDownList by setting focus() method to the wrapper element of Dropdown.    
<div class="control" style="floatleft;">   
            <span class="txt">Select Group</span>   
To set Focus on creation:   
        create:function(){ $("#groupsList_wrapper").focus();},   
 Please refer the below link for DropDownList client side API’s:   

We have also set focus to DropDownList in our online demos sample using shortcut key.   
 Please refer the below given link:   
 Please let us know if you have any concern.    


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