Howard Bash
asked on
jQuery value within div undefined
When I query my page in the console, I get back the innerhtml. However, when I try to do this in a routine, the value I get back is undefined.
The code follows:
I can see "el" in the console has a div, but the innerhtml assignment fails and rawhtml is undefined.
Please advise.
The code follows:
$('.testimonial').each (function() {
var el = this;
var rawhtml=el.innerhtml;
el.innerhtml = CleanHTMLBody(rawhtml);
});
I can see "el" in the console has a div, but the innerhtml assignment fails and rawhtml is undefined.
Please advise.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Duh. Thanks. It was a case of wrong case. ;-)
What does CleanHTMLBody do?
Open in new window