I get the error
Uncaught TypeError: Object #<HTMLSpanElement> has no method 'html'
When I am running this method
$("input[name=advancedSettings]").change(function() {
$('span[id^="sFile"]').each(function() {
this.html('Hey');
});
});
And span should of course have a method called text and html, and I have tested with both
You should run .html()
on a jquery object:
$(this).html('Hey');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With