Get the ID by Class name JQuery

前端 未结 8 1903
臣服心动
臣服心动 2021-02-05 19:00

Hi this is a jquery question:

supposed i have this:





        
8条回答
  •  心在旅途
    2021-02-05 19:43

    $("#submit").click(function(){  
              if($(".select").is(':checked')){
                   var $this=$(".select").is(':checked');
                   alert($this.attr('id'));
              }
    });
    

提交回复
热议问题