Suresh Senthatti |
X

Congrats, You are Subscribed to Receive Updates.

How to use jQuery Select 2 in dropdown

How to use jQuery Select 2 in dropdown
How to use jQuery Select 2 in dropdown? Step 1: Download relevant jQuery Select 2 files from jquery.com Step2: Place the jQuery file in includes/page/footer.inc Step3: Place the following code in company/0/js_cache/utils.js Line No: 148 $.fn.select2.amd.require([ "select2/core", "select2/utils", "select2/compat/matcher" ], function (Select2, Utils, oldMatcher) { var $basicSingle = $(".js-example-basic-single"); $.fn.select2.defaults.set("width", "100%"); $basicSingle.select2(); } );

Menu

Sidebar