7
rated 0 times
[
10]
[
3]
/ answers: 1 / hits: 16408
/ 14 Years ago, sun, february 13, 2011, 12:00:00
How can we do like the bottom, the simple way ?
?
it updates when we change the input.
More From » jquery
How can we do like the bottom, the simple way ?
?
it updates when we change the input.
Say you had the following HTML:
<input type=text id=textbox/>
<span>http://twitter.com/<span id=changeable_text></span></span>
Your JS would listen for the keyup
event.
$('input#textbox').keyup(function() {
//perform ajax call...
$('#changeable_text').text($(this).val());
});