Every line of 'jquery on dropdown change' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
260 _dropDownChanged(e) { 261 this.value = e.detail.value ? e.detail.value.getAttribute("value") : null; 262 }
69 function setDropdownValue(event) { 70 var dt = event.target.parentNode.parentNode.previousSibling; 71 dt.value = event.target.getAttribute("value"); 72 dt.firstChild.textContent = event.target.textContent; 73 74 dt.parentNode.setAttribute("dropped", "false"); 75 76 var evt = document.createEvent("HTMLEvents"); 77 evt.initEvent("change", true, true); 78 dt.dispatchEvent(evt); 79 }
101 showDropdown() { 102 if (!this.dropdownMenu.hasClass('show')) { 103 this.dropdownToggle.dropdown('toggle'); 104 } 105 }
123 _onChange(event) { 124 this.setState({ value: event.target.value }); 125 super._onChange(event); 126 }
12 onChange (e) { 13 this.props.onChange(this.props.id, e.target.value); 14 }
124 onChange(e) { 125 this.setState({ 126 value: this.dropDown.value, 127 }); 128 this.props.onChange(e.target.value); 129 }
17 async handleDropdownChange(event, data, type){ 18 let tempConfig = this.props.config; 19 tempConfig[type] = data.value; 20 tempConfig[type+'Label'] = data.text; 21 await this.props.handleParentState("config", tempConfig, "groupAndSortRecalc") 22 }
81 set open(val: boolean) { 82 this._open = val; 83 this._openChanged.emit(val); 84 }
97 function openDropdown(event) { 98 if($this.parents(".navbar").find(".navbar-toggle").is(":visible")) { 99 // If we're inside a navbar, don't do anything when the 100 // navbar is collapsed, as it makes the navbar pretty unusable. 101 return; 102 } 103 104 // clear dropdown timeout here so it doesnt close before it should 105 window.clearTimeout(timeout); 106 // restart hover timer 107 window.clearTimeout(timeoutHover); 108 109 // delay for hover event. 110 timeoutHover = window.setTimeout(function () { 111 $allDropdowns.find(':focus').blur(); 112 113 if(settings.instantlyCloseOthers === true) 114 $allDropdowns.removeClass('open'); 115 116 // clear timer for hover event 117 window.clearTimeout(timeoutHover); 118 $this.attr('aria-expanded', 'true'); 119 $parent.addClass('open'); 120 $this.trigger(showEvent); 121 }, settings.hoverDelay); 122 }
296 _valueChanged(newValue, oldValue) { 297 let children = this.querySelectorAll("paper-item"); 298 if (children !== undefined && children !== null) { 299 for (let i = 0; i < children.length; i++) { 300 if (this.value === children[i].getAttribute("value")) { 301 this.shadowRoot.querySelector("#listbox").selected = i; 302 this._setSelectedValues(); 303 } 304 } 305 } 306 }