In my function, when specifying to work with each input field by class name, then return the class name, I get a different set of class names then the ones I have assigned.
It's strange that I can reference the field by a class name in the for each statement, but when I ask it to tell me it's class, it doesn't even return the class name that I used to find the field to begin with.
The reason I need to know it's class, is so that I can know which field I am on, as there is an unknown number of them on the form preventing me from referencing by iteration. Although the fields share the myClass (which I just used as an example) they also have unique class names.
This works with tables, but not with input fields.
$('.myClass input').each(function () { var str = $(this).attr('class'); alert(str); });
Here is what it returns: singleline cf-small lf-no-validate
None of which include my custom classes that I have assigned.