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());
});
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