Text inputs

Home

Text inputs

Since the native text inputs and textareas are used as a proxy for the custom text inputs, you can watch for events on the original, native text input and textareas instead of needing to go through the text input plugin. Bind to the change event by type: change, blur, focus, keypress, click, etc.

 
$( ".selector" ).bind( "change", function(event, ui) {
  ...
});

The text input plugin has the following custom events:

create triggered when a text input is created

This event is used to find out when a custom text input was created. It is not used to create a custom text input. The text input create event can be used like this:


$( ".selector" ).textinput({
   create: function(event, ui) { ... }
});