44
rated 0 times
[
51]
[
7]
/ answers: 1 / hits: 31174
/ 12 Years ago, tue, january 15, 2013, 12:00:00
I am trying to have some functionality on change of a textbox which is readonly.
But when I am trying to update the textbox using javascript, the change event is not firing for the textbox.
<script type=text/javascript>
$(document).ready(function () {
$('input[id$=_txtTest]').bind(change, function () {
alert(test);
});
});
function ChangeText() {
$('input[id$=_txtTest]').val('hello');
}
</script>
I am calling ChangeText method on click of a button. But it is not firing the textchange event for the textbox.
Can anybody tell me what is wrong here?
More From » jquery