Currently, I am attempting to modify the inner html of an element. When I utilize the following code:
$('.best-photos-button')[0].innerHTML="Add More Photos";
the change is successful. However, if I try to use .html() instead of ".innerHTML" in JavaScript like so:
$('.best-photos-button').html("Add More Photos");
it does not work. I'm puzzled as to why this might be happening. Whenever I execute $('.best-photos-button').innerHTML in the console, it returns undefined.