I’m writing this:
var SomeClass = "MyClass";
$('#SomeID').find(SomeClass).each(function () { .... });
For some reason, when I get into the .each loop, it’s not returning any elements.
I thought .find would work with a string as a parameter but it’s not. What am I doing wrong?
You forgot to add ‘.’ in class. modified code:-