[jQuery] Re: How to bind event handlers to elements

2009-08-11 Thread Richard D. Worth
$('input').bind('change', function() { //... }); or $('input').change(function() { //... }); See http://docs.jquery.com/Events/bind#typedatafn and a full list of Event Helpers, such as http://docs.jquery.com/Events/blur#fn http://docs.jquery.com/Events/change#fn http://docs.jquery.com/Event

[jQuery] Re: How to bind event handlers to elements

2009-08-11 Thread Leonardo K
U need a id or a classe to find the element. If u have a id in your input u could do: $("#id"),change(function(){ //your code here }); If u have a input inside a container that have a class you could do this: $(".container input").change(function(){ //your code here }); or with id $("