我想启用所有禁用输入和submiting形式,所以我可以得到所有禁用的元素值之前选择元素。启用所有禁用输入和选择元素
所以我试图
function enable() {
$('input[type="text"], input[type="checkbox"], select').prop("disabled", true).each(function() {
if ($(this).is(':disabled')) {
$(this).attr('disabled', false);
}
});
}
此代码不能正常工作,所以你可以帮我这个工作。
在此先感谢....
'$( '输入[类型= “文本”],输入[类型= “复选框”],选择')。removeProp(”禁用')' – adeneo
不,它不工作。 –