javascript - jquery change event works on form element - undocumented feature? -
if want handle .change
event on form elements, sources recommend this:
$('#form_id :input').change(...)
but realized following works too:
$('#form_id').change(...)
but really? tried find feature on jquery api - change if correctly, seems undocumented?
the change event sent element when value changes. event limited
<input>
elements,<textarea>
boxes ,<select>
elements.
Comments
Post a Comment