Create an array for unique buttonid dynamically in the loop like, Outside the loop use implode to convert this array to comma separated string.

Asking for help, clarification, or responding to other answers.

Thoughts? I am not really familiar with jQuery. javascript - with - jquery multiple ids same function . your coworkers to find and share information. Dec 6th 2012 #1; By using an embedded webbrowser, I have managed to navigate to a site, interact with welcoming pop-ups, login with username and password, search for records in a database, access the records, and populate …

How can I select an element with multiple classes in jQuery? Worth noting with HTML5, the data-attribute comes in handy for when one might be tempted to assign multiple things the same ID. Now use php to pass above string as selector in your js code like: If you use same buttonid for all button then there is no need to call all buttons..just simply use this code..It seems that you are using animation in this code....well use togglefade instead of reveal,