Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
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 ?



enter ?



it updates when we change the input.


More From » jquery

 Answers
17

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

[#93759] Friday, February 11, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
krystadesiraeo

Total Points: 493
Total Questions: 93
Total Answers: 100

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
;