jQuery('#elemID') != document.getElementById('elemID')
Help me to understand something.
I have a function that will take all the spans with a certain class ("jobStatus") and remove an additional class from it ("orange"). I call the function from a SELECT onchange (onchange="chgJobstatus(this);"). It's working great.
However, I'm trying to get it to run on page load, based upon the selected value (this is server-side dynamically generated.)
This will work:
This will NOT work:
Doesn't jQuery('#id') do the same thing as document.getElementById('#id') ??