Disable/enable an input with jQuery?

后端 未结 18 2670
礼貌的吻别
礼貌的吻别 2020-11-21 07:47
$input.disabled = true;

or

$input.disabled = \"disabled\";

Which is the standard way? And, conversely, how do yo

18条回答
  •  梦如初夏
    2020-11-21 08:10

    this works for me

    $("#values:input").attr("disabled",true);
    $("#values:input").attr("disabled",false);
    

提交回复
热议问题