I know how to implement a Chosen field in an HTML file, but how can I set the code, so the Chosen.js is applying the behaviour in a Lookup field?

I found about Chosen.js here, but sadly found nowhere how to implement it in a SharePoint Lookup field:

Drop down lookup field search

1 Answer 1


You can use the following code to make a lookup field to be searchable using chosen.js

$(SPUtility.GetSPFieldByInternalName('LookupFieldInternalName').Controls).find('select').chosen({width: "100px"});

JS files required:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.