jQuery - binding input

Simple binding with jQuery

by Rene Rubio

HTML

<input type='text' />
<p></p>

JavaScript

$( "input[type='text']" ).bind('change keydown keyup',function() {
  $('p').html( $( this ).val() );
});