
I have a Dropdown list, I want to pass selected value of this dropdown to caml query. Please suggest solutions for this SharePoint online query.
Try this query below :
var queryString = "<View><Query><Where><Eq><FieldRef Name='Department'/><Value Type='Choice'>" + sel + "</Value></Eq></Where></Query></View>";