Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript javascirpt书签启用页面和文本框上的所有禁用按钮_Javascript - Fatal编程技术网

Javascript javascirpt书签启用页面和文本框上的所有禁用按钮

Javascript javascirpt书签启用页面和文本框上的所有禁用按钮,javascript,Javascript,我想在书签中添加javascript 1行代码,然后单击页面上的EnableAll按钮。 删除HTML中的禁用属性 javascript: (function(){ $(':input[type="button"]').prop('disabled', false); })() 还是这个 javascript:Array.from(document.getElementsByClassName('textbox1')).forEach(function(v){v.removeA

我想在书签中添加javascript 1行代码,然后单击页面上的EnableAll按钮。 删除HTML中的禁用属性

  javascript:

  (function(){
$(':input[type="button"]').prop('disabled', false);

  })()
还是这个

javascript:Array.from(document.getElementsByClassName('textbox1')).forEach(function(v){v.removeAttribute("disabled");});
它们需要修改,innerhtml类或按钮id可能不同,因此最好使用某种循环并删除所有(禁用的)属性