Stop jQuery from repeating, example attached
问题 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 it runs each time creating extra elements I do not need. Is there a way to have a jQuery that appears more then once only run once when it is the last time it appears in the code? Thanks for any help. Example is below. I have previously posted this and everyone asked to see how I was doing it. I was not sure how to add