select 多次选择option 多个option selected解决方案问题如图所示:动态渲染后对select 中的option 多次进行选择,option selected多个这会导致显示出错

解决方案:

每次动态渲染时清空  option selected属性

$(".four-select option").removeAttr("selected");

.four-select 为所选择的元素

相关文章:

  • 2021-09-25
  • 2021-11-29
  • 2021-12-08
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-02-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-02-14
相关资源
相似解决方案