I am now able to replace html text dynamically (How can I replace html text dynamically?), but I need the tweets to refresh when the inputQuery val replaces the text/caption/heading, too. IOW, I can change the text from, say, "jquery" to "html5" but the tweets I've got displaying remain the jquery tweets. How can I get that div to refresh? The content is in a jqueryUI tab, but that probably doesn't matter.
UPDATE
This is what I have:
$("#inputQuery").keyup(function (e) {
if (e.keyCode == 13) {
$("#Twitterpated h3").text(this.value);
inputQueryText = this.value;
loadTweets(); // this concatenates the bits necessary, with inputQueryText in the middle (the "screen name" part)
}
});
...and it doesn't work. That is to say, the text gets changed, and the concatenated twitterUrl is correct, but the page does not refresh.
I got to thinking - maybe the problem is that I'm not clearing the previous entries. How can I clear the html on the call to loadTweets()? I tried:
$("#Twitterpated h3").html("");
...and:
$("#Twitterpated h3").html().val("");
...to no avail.