I want to display some information (in jquery dialog), so when user enters a value in the text box and on blur It should make an ajax call using that value and display information in the dialog box.
This is what i tried so far:
$(function () {
$('#MyTextbox').blur(function () {
var id = $(this).val();
if (id >= "1") {
alert(id);
ShowData();
}
});
});
function ShowData() {
$("#dialog").dialog();
}
Is there any other better way of doing this?
1 Answer