Latest news
Home » jQuery » avoid select2 search box

avoid select2 search box

Comaparatively select2 is faster than select box.Select2  is an alternative of select box with search option. We can avoid this select2 search box by adding the following script:

 

jQuery(“#dd-from,#mm-from,#yy-from,#dd-to,#mm-to,#yy-to,#time-from,#time-to”). select2({
minimumResultsForSearch :  -1
});

Leave a Reply

x

Check Also

How to Check Expired Sessions using jQuery Ajax and PHP

We can achieve using the php and ajax.The following ajax call execute in every 10 ...