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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

set focus to specific dropdownlist on page laod

Thread ID:

Created:

Updated:

Platform:

Replies:

147173 Sep 3,2019 09:22 PM UTC Sep 4,2019 01:29 PM UTC ASP.NET Core 1
loading
Tags: ComboBox
Koen
Asked On September 3, 2019 09:22 PM UTC

Dear,

I have a page with three dropdownlists. How can I set the focus to one specific dropdownlist?


this is one of my dropdownlists:
<ejs-combobox id="newProduct"
              dataSource="@ViewBag.products"
              allowFiltering="true"
              filtering="onfiltering">
    <e-combobox-fields value="Id" text="Name"></e-combobox-fields>
</ejs-combobox>

calling 
        window.onload = function () {
    $("#newProduct").focus();
 
}

is not working

thanks


Narayanasamy Panneer Selvam [Syncfusion]
Replied On September 4, 2019 01:29 PM UTC

Hi Koen,

 
We have validated your query. 
 
Based on your code snippet. we have prepared the sample and its working fine in our end. We suspect that you did not refer the jquery file in Layout.cshtml.  
If so please refer the below cdn in head section 
 
 
If we misunderstood your requirement please get back us with further details like, 
1.       Issue reproducing video. 
2.       Issue reproducing sample. 
 
Regards, 
Narayanasamy P. 


CONFIRMATION

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

Live Chat Icon For mobile
Live Chat Icon