trigger click event of div manually

后端 未结 3 328
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 05:57

i have a div which has many divs.when binding the divs i create click event for each item like below

    jQuery.each(opts.items, function (i, item)
                  


        
3条回答
  •  时光说笑
    2020-12-18 06:47

    Get you Elements via Jquery and use trigger function ;)

    $("#yourdesiredselementsid").trigger("click");
    

提交回复
热议问题