JQuery / JavaScript - trigger button click from another button click event

前端 未结 7 1532
长发绾君心
长发绾君心 2020-12-13 06:10

I have this HTML which looks like this:




        
7条回答
  •  -上瘾入骨i
    2020-12-13 06:30

    You mean this:

    jQuery("input.first").click(function(){
       jQuery("input.second").trigger('click');
       return false;
    });
    

提交回复
热议问题