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. Image for the cookie policy date

Manually Set Focus

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

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

1 Reply

KR Keerthana Rajendran Syncfusion Team 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.    

Live Chat Icon For mobile
Up arrow icon