Lines Matching refs:select

287                     range.select();
864 var element, select, idKey, ajaxUrl, self = this;
868 if (element.get(0).tagName.toLowerCase() === "select") {
869 this.select = select = opts.element;
872 if (select) {
873 // these options are not allowed when attached to a select because they are picked up off the element itself
876 throw new Error("Option '" + this + "' is not allowed for Select2 when attached to a <select> element.");
952 if (select) {
1756 // if selectOnBlur == true, select the currently highlighted option
1803 if (this.select) {
1804 var firstOption = this.select.children('option').first();
1808 (typeof this.opts.placeholderOption === "function" && this.opts.placeholderOption(this.select));
1925 range.select();
1936 this.search.select();
2234 if (opts.element.get(0).tagName.toLowerCase() === "select") {
2238 // a single select box always has a value, no need to null check 'selected'
2267 // if a placeholder is specified on a single select without a valid placeholder option ignore it
2268 if (this.select) {
2283 // check for a placeholder option if attached to a select
2284 if (this.select && this.getPlaceholderOption() === undefined) return;
2407 if (this.select) {
2408 this.select
2500 if (opts.element.get(0).tagName.toLowerCase() === "select") {
2770 if (this.select || this.opts.element.val() !== "") {
2819 this.search.select();
2893 if (this.select || !this.opts.closeOnSelect) this.postprocessResults(data, false, this.opts.closeOnSelect===true);
2911 this.search.select();
2916 // if nothing left to select close
2922 // since its not possible to select an element that has already been
3018 if (this.select) this.postprocessResults();
3105 if (this.select) {
3106 val = this.select.val();
3117 if (this.select) {
3118 this.select.val(val);
3177 if (this.select) {
3178 this.opts.initSelection(this.select, this.bind(this.updateSelection));
3202 if (this.select) {
3203 throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");
3270 if (opts.element.get(0).tagName.toLowerCase() === "select") {
3338 formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },