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

Error on value selection using DropDownList

Hi,

I am receiving a very interesting error on a client-side drop down list: Uncaught Error: Syntax error, unrecognized expression: [id='#F-2 (501' - 700')']. Currently I am not using any jQuery nor JavaScript; is there a way to prevent jQuery from using the selected value as an ID?

Any insight would be helpful.

Thank you!
Matt Broich


1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team August 1, 2019 01:07 PM UTC

Hi Matt Broich, 
 
Good day to you. 
 
In our DropDownList component, we have set id for selected element based on the selected value. If you need to select the text not to be set as id of selected element, you can set different text and value fields for DropDownList. So that text field will be displayed in popup for selection and value will be set as id of selected element. we were unable to reproduce the issue in our end kindly check with our sample. 
 
 
Please check the above sample and if issue persists, kindly modify the above sample to replicate the issue (if possible). Else share us your code snippet in which you get this issue. 
 
Regards, 
Ashokkumar B. 


Loader.
Live Chat Icon For mobile
Up arrow icon