.change() | jQuery text change event
Description:Bindaneventhandlertothe"change"JavaScriptevent,ortriggerthateventonanelement.Thismethodisashortcutfor.on("change",handler)inthefirsttwovariations,and.trigger("change")inthethird.Thechangeeventissenttoanelementwhenitsvaluechanges.Thiseventislimitedtoelements,
Description: Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
This method is a shortcut for .on( "change", handler ) in the first two variations, and .trigger( "change" ) in the third.
The change event is sent to an element when its value changes. This event is limited to <input> elements, <textarea> boxes and <select> elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.
For example, consider the HTML:
1
2
3
4
5
6
7
8
9
10
<input class="target" type="text" value="Field 1">
<op...