1,获取下拉框里面option的值

     $("#select").children("option:selected").text();

2, 下拉框改变事件 table 选项卡

  $("#select").change(function(){

    oswitch();//执行函数

  });

  function oswitch(){

        $("#div").empty();//清空容器

    switch($("#select").children("option:selected").text()){

      case  '1' :

        函数(1);

        break;

        case  '2' :

        函数(2);

        break;

      default:

        break;

    }

  }

相关文章:

  • 2021-12-04
  • 2021-07-28
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-11-23
  • 2021-05-21
  • 2021-05-11
  • 2022-01-23
  • 2021-12-31
  • 2021-07-09
相关资源
相似解决方案