jQuery Chosen change popup count items -
i'm using chosen jquery plugin in project. default count of viewed itemd after click on select
10. , i'm trying change 5, how that?
var config = { '.chosen-select': {}, '.chosen-select-deselect': {allow_single_deselect: true}, '.chosen-select-no-single': {disable_search_threshold: 10}, '.chosen-select-no-results': {no_results_text: 'not found!'}, '.chosen-select-width': {width: "100%"} } (var selector in config) { $(selector).chosen(config[selector]); }
thanks
try below
for example : <select name="reg_email" id="cars" size="3"> <option>toyota</option> <option>holden</option> <option>tata</option> <option>alfa romeo</option> <option>citroen</option> <option>honda</option> <option>jeep</option> <option>suzuki</option> </select>
add size attribute , add limit size='5'.
i hope you.
Comments
Post a Comment