Multiple id's in a single JavaScript click event

前端 未结 7 584
生来不讨喜
生来不讨喜 2020-12-14 19:23

In JavaScript I am using click event to change chart data. Below is a method for click event.

$(\'#pro1\').click(function () {
            chart.series[0].up         


        
7条回答
  •  囚心锁ツ
    2020-12-14 19:38

    You could give all of your elements a class name and use the :eq() selector within jQuery.

提交回复
热议问题