ctrl + q没有使用jquery进行处理 [英] ctrl+q not handeled using jquery

查看:55
本文介绍了ctrl + q没有使用jquery进行处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 $( #setting_form)。keydown(function (e){

if (e.ctrlKey&& e.keyCode == 81 ){$( this )。hide();

$( #update_form)。show();
}







i当用户按crtl + qi想要隐藏一个div并显示另一个div时想要



但这不是' t work

解决方案

#setting_form)。keydown(function(e){

if (e.ctrlKey&& e.keyCode == 81 ){


this )。hide();

#update_form)。show();
}







i当用户按crtl + qi想隐藏一个div时显示另一个



但这不起作用


$("#setting_form").keydown(function(e){

       if (e.ctrlKey && e.keyCode == 81){$(this).hide();

       $("#update_form").show();
       }




i want when the user press crtl+q i want to hide one div and show another

but this doesn't work

解决方案

("#setting_form").keydown(function(e){ if (e.ctrlKey && e.keyCode == 81){


(this).hide();


("#update_form").show(); }




i want when the user press crtl+q i want to hide one div and show another

but this doesn't work


这篇关于ctrl + q没有使用jquery进行处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆