Every line of 'jquery onchange select' 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.
11 function onChange(e) { 12 const newValue = e.target.value; 13 props.onChange(newValue); 14 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
154 function selectChangeEvent(e) { 155 156 // an item has been selected on the regular select we created 157 // check to make sure it's not an IE screwup, and add it to the list 158 159 if(msie > 0 && msie < 7 && !ieClick) return; 160 var id = $(this).children("option:selected").slice(0,1).attr('rel'); 161 addListItem(id); 162 ieClick = false; 163 triggerOriginalChange(id, 'add'); // for use by user-defined callbacks 164 }
129 function selectChangeEvent(e) { 130 131 // an item has been selected on the regular select we created 132 // check to make sure it's not an IE screwup, and add it to the list 133 if(ieVersion() < 7 && !ieClick) return; 134 var id = $(this).children("option:selected").slice(0,1).attr('rel'); 135 addListItem(id); 136 ieClick = false; 137 triggerOriginalChange(id, 'add'); // for use by user-defined callbacks 138 }
81 function selectCallback(value, index) { 82 $(".demo .callback_output").prepend("<p>VALUE: " + value + ", INDEX: " + index + "</p>"); 83 }
36 function onChange(event) { 37 var elem = event.target, 38 value = self.options[$(elem).prop('selectedIndex')]; 39 40 self.eventEmitter.emit('change', value[0]); 41 }
47 function onChangeSelect(option) { 48 setValue(option.value) 49 }
15 function handleSelectChange(e) { 16 if (e && e.target && e.target.value) { 17 handleChange(e.target.value, selectFor); 18 } 19 }
78 function onInputSelect(element) { 79 element.css('color', '#000000'); 80 element.val(''); 81 }
24 onChange(e){ 25 const { setItems } = this.props 26 const key = e.target.value 27 setItems([key]) 28 }
23 private selectedFunction (){ 24 this.result.emit(this.value); 25 }