Code:
$("select").change(function () {
function_name($(this));
});
$("textarea").change(function () {
function_name($(this));
});
$("input").change(function () {
function_name($(this));
});
I'm sure the above code can be improved. Also, I understand the above won't target radio and checkboxes, is that right? Basically I want all form elements (not necessarily always inside a <form> tag though) to trigger a script after entering text/data in them.
Thanks for any help.