Monday, May 20, 2024
Homepage · c#
 Popular · Latest · Hot · Upcoming
75
rated 0 times [  77] [ 2]  / answers: 1 / hits: 31779  / 15 Years ago, tue, september 1, 2009, 12:00:00

I have asp.net TextBox with ontextchanged event this is search text box in my application.



I have search code in this event. how can I fire this event with the help of j query onkeyup.



If i enter text in text box it will fire ontextchanged without press enter or mouse.



This is an example of event what i need. But i dont know how to fire ontextchanged on this.



http://viralpatel.net/blogs/demo/sum-textbox-value-javascript.html


More From » c#

 Answers
32
$('#textMessage').keyup(function(event) {
if (event.keyCode == 13) {
var message = $('#textMessage').val();
alert(message);
} else {
return true;
}
}); //endTextMessage keyup

[#98788] Thursday, August 27, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marquezb

Total Points: 237
Total Questions: 97
Total Answers: 89

Location: Israel
Member since Wed, Apr 14, 2021
3 Years ago
;