<script>
$(document).keypress(function(e){
if(e.keyCode==27){
//User pressed the esc key, if the popup is display then the popup will automatically goes to hide state
if($('#pop_up_div').show()){
$('#pop_up_div').hide()
}
}
})
</script>
$(document).keypress(function(e){
if(e.keyCode==27){
//User pressed the esc key, if the popup is display then the popup will automatically goes to hide state
if($('#pop_up_div').show()){
$('#pop_up_div').hide()
}
}
})
</script>
0 comments:
Post a Comment