How to handle change of checkbox using jQuery?

后端 未结 7 1856
失恋的感觉
失恋的感觉 2020-12-02 15:02

I have some code




7条回答
  •  不思量自难忘°
    2020-12-02 15:38

    get radio value by name

      $('input').on('className', function(event){
            console.log($(this).attr('name'));
            if($(this).attr('name') == "worker")
                {
                    resetAll();                 
                }
        });
    

提交回复
热议问题