$('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
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
$("
2 matches
Mail list logo