jquery: how to get the value of id attribute?

后端 未结 4 543
走了就别回头了
走了就别回头了 2020-12-02 18:10

Basic jquery question. I have an option element as below.

  

4条回答
  •  既然无缘
    2020-12-02 18:45

    You can also try this way

    
    

    jquery

    $('.select_continent').click(function () {
    alert($(this).data('value'));
    });
    

    Good luck !!!!

提交回复
热议问题