Pages

Sunday, January 26, 2014

Select2.js configuration

   if (typeof $.fn.select2 != 'undefined')
                    {
                        var tags= 'one, two, three';
                        $("#selectTags").select2({
                            placeholder: "Select options",
                            selectOnBlur: false,
                            openOnEnter: true,
                            blurOnChange: true,
                            allowClear: false,
                            tags: tags
                        });

                    }

No comments:

Post a Comment