search

Home  >  Q&A  >  body text

javascript - The displayed attribute of select cannot be removed under IE9/10

The above is a select, and its attributes are set to read-only by default. Now I think this is only readable. It can be used in other browsers, but it cannot be used in IE9/10. Please tell me. How to set this up

I have tried the following methods
$('#areaSelect').attr("disabled",false);
$('#areaSelect').removeAttr("disabled");
$('#areaSelect').attr("disabled","");

Will not work. . . .

曾经蜡笔没有小新曾经蜡笔没有小新2841 days ago488

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-05-19 10:22:24

    Try using the native one

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:22:24

    $('#areaSelect').prop({disabled:false});

    reply
    0
  • Cancelreply