Sourabh Dhiman

Sourabh Dhiman

  • NA
  • 323
  • 58.8k

please help me .

Jul 18 2019 1:03 AM
 I will set enter key not run code . But not run please help me.
$(function () {
$('#chkCodeudor').click(function () {
if ($('#chkCodeudor').is(":checked")) {
//showdata.dinner = "Y";
var dinemessage = findreservationdefaultbyname("dinnermessage");
$('#dinemessage').html(dinemessage);
$('#myModal').modal('show');
} else {
$('#myModal').modal('hide');
}
});
});
 
___________________________________________________
 
 
$('#chkCodeudor', '#dinemessage','#myModal').keypress(function (event) {
var keycode = (event.keyCode ? event.keyCode : event.which);
if (keycode == '13') {
// SignIn();
return false;
}
});
 

Answers (1)