Instead of
change
, make it to
keyup
or
onfocusout
:
<script type="text/javascript">
$('#GLGroupCode').on('keyup', function (event) {
alert("s");
$.ajax({ url: "/GLMaster/TextChanged", type: "GET", data: { text: $('#GLGroupCode').val() }, dataType: 'json', success: function (result) {
$('#txtSearch1').val(result);
}
});
});
</script>
-KR