The classes should be separated by a ',' (Comma). Please check out the
documentation on Selectors, having spaces it looks for the second class
within the first class sub-children. That's not what you desire.
Try the following code :
$(".numAdultsField, .numChildrenField").blur(function() {
Hi,
I have to apply an onblur function to elements of type
"numAdultsField" or "numChildrenField". How do I do that? This isn't
working ...
$(".numAdultsField .numChildrenField").blur(function() {
var id = $(this).attr("id");
var eltPrefix = id.substring(
2 matches
Mail list logo