Disable/enable an input with jQuery?

后端 未结 18 2707
礼貌的吻别
礼貌的吻别 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 07:47

    Approach 4 (this is extension of wild coder answer)

    txtName.disabled=1     // 0 for enable

提交回复
热议问题