Disable track click on input type range

后端 未结 1 349
感动是毒
感动是毒 2021-01-19 03:23

I want to disable track click on input type range, Only allow drag through thumb.

I am able to do it in all browsers except Microsoft Edge and Internet Explorer.

相关标签:
1条回答
  • 2021-01-19 04:00

    using jquery to disable

    $("input[name=Range]").css("pointer-events","none"); $("input[name=Range]").css("disabled","disabled");

    to normal

    $("input[name=Range]").css("pointer-events","auto"); $("input[name=amountRange]").removeAttr("disabled");

    0 讨论(0)
提交回复
热议问题