jQuery有一个.prop()
的方法,可以让你来调整元素的属性。
以下代码显示如何禁用所有按钮:
$("button").prop("disabled", true);
来尝试只让target1
按钮禁用。
文章标签 jquery 禁用某个方法 jQuery 文章分类 jQuery 前端开发
jQuery有一个.prop()
的方法,可以让你来调整元素的属性。
以下代码显示如何禁用所有按钮:
$("button").prop("disabled", true);
来尝试只让target1
按钮禁用。
禁用a标签方法101$(document).ready(function () {02 $("a").each(function () {
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M