10 examples of 'textbox onchange jquery' in JavaScript

Every line of 'textbox onchange jquery' 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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
31_onChange() {
32 let name = this.props.fieldId
33 let value = this.getValue()
34 this.emit('commit', name, value)
35}
Important

Use secure code every time

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

28_onChange(ev) {
29 this.setValue(ev.target.value);
30}
59handleChange(event) {
60 this.setState({ changed: true });
61 this.props.onChange(event.target.value);
62}
43onBlur() {
44 const { selectValue } = this.state;
45 const { options } = this.props;
46 const value = selectValue.trim();
47 // check if there is an exisiting contact for the input
48 const existingContact = options.find((option) => option.name.toLowerCase() === value.toLowerCase() || isAddressMatch(option.value, selectValue));
49 // set the input value to be a Invalid Addition Message as the input is not a valid input and nor is it an exisiting option
50 if (!this.props.addInputValidator(value) && !existingContact) {
51 this.setState({ selectValue: this.props.invalidAdditionMessage });
52 } else if (existingContact) {
53 this.setState({ selectValue: existingContact.name });
54 } else {
55 // this is for if there is a valid input but there is no existing option
56 this.setState({
57 selectValue: value,
58 });
59 }
60 this.props.handleSelect(value);
61}
481function handleKeyTextbox(target, keyCode, altKey) {
482 var combo;
483 /* keydown happens when a combo input is focused */
484 if (keyCode === KeyEvent.DOM_VK_TAB) {
485 // TAB out, do nothing, focus will take care of it.
486 return false;
487 }
488
489 combo = getCombo(target);
490 if (!combo) {
491 return false;
492 }
493
494 switch (keyCode) {
495 case KeyEvent.DOM_VK_ESCAPE:
496 if (shed.isExpanded(combo)) {
497 shed.collapse(combo);
498 return true;
499 }
500 break;
501 case KeyEvent.DOM_VK_DOWN:
502 doDownButton(combo, altKey);
503 break;
504 case KeyEvent.DOM_VK_UP:
505 doUpKey(combo, altKey);
506 break;
507 default:
508 if (filter && (!key.isMeta(keyCode)) && !CHATTY_COMBO.isOneOfMe(combo)) {
509 filterOptions(combo);
510 }
511 }
512 return false;
513}
50function onBlur(e) {
51 onChange(e, true);
52}
10onChange(e) {
11 this.props.onChange(e.target.value);
12}
248registerOnChange(fn: (newValue: string | number) => void): void {
249 this.onChange = fn;
250}
21function changed(select)
22{
23 select.blur();
24 onchangeCount++;
25
26 var result = document.getElementById("result");
27 result.innerText = onchangeCount == 1 ? "SUCCESS" : "FAILURE: onchange count was " + onchangeCount;
28}
12onChange (e) {
13 const { onChange = '', onInput = '' } = this.props
14 Object.defineProperty(e, 'detail', {
15 enumerable: true,
16 value: {
17 value: e.target.value
18 }
19 })
20 if (onChange) return onChange && onChange(e)
21 if (onInput) return onInput && onInput(e)
22}

Related snippets