I have the following html:
<div class="custom_title" contenteditable="true" maxlength="50">
WRITE YOUR CUSTOM TITLE HERE
</div>
Then I do:
$("#search_wiki").on("click", function() {
myGoogle();
});
Which calls:
var termS;
function myGoogle() {
termS = $(".custom_title").html();
console.log(termS);
Yet when I change the text on that div, the console stills gives me the old text and not the new one