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 $("#container input").change(function(){ /your code here }); On Tue, Aug 11, 2009 at 03:28, André Hänsel <an...@webkr.de> wrote: > > Hi list, > > which is the recommended way to bind event handlers to elements. > Preferably without giving each of them an id. > > As far as I know, the "classic" way (<input onchange="...">) is > considered deprecated and evil. So what is the jQuery way of doing > this? > > Regards, > André >