找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 查看内容

jquery如何设置不可点击

作者:模板之家 2020-11-23 12:17 162人关注

jquery设置不可点击的方法:首先打开相应的代码文件;然后通过“$(input).attr('readonly', true);$(textarea).attr('readonly', true);”方法设置页面元素不可点击即可。

jquery设置不可点击的方法:首先打开相应的代码文件;然后通过“$("input").attr('readonly', true);$("textarea").attr('readonly', true);”方法设置页面元素不可点击即可。

推荐:《jquery视频教程》

  • 该方法适用于所有品牌的电脑。

jquery 设置页面元素不可点击、不可编辑、只读

代码如下:

$("input").attr('readonly', true);
$("textarea").attr('readonly', true);
$(':radio').attr('disabled', true);
$(':checkbox').attr('disabled', true);
$(':button').attr('disabled', true);
$('a').removeAttr('onclick');
$('select').attr('disabled', true);

以上就是jquery如何设置不可点击的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章!


路过

雷人

握手

鲜花

鸡蛋
来自: 网络收集

全部回复(0)