Stop jQuery from repeating, example attached

后端 未结 1 976
不思量自难忘°
不思量自难忘° 2021-01-16 20:24

I have to attach a jQuery to an invoice. Sometimes I have to print multiple invoices as once in a batch. When this happens my exact same jQuery appears for every invoice and

1条回答
  •  难免孤独
    2021-01-16 21:00

    Change your repeating template to include a check:

    
    

    Now it should run only once.

    Another thing to try, where we remove the classes as we go...

    
    

    0 讨论(0)
提交回复
热议问题