An id
can only be used once. Your HTML contains multiple elements using the same id
i.e. <button ... id="d_clip_button"><b>Copy To Clipboard...</b></button>
.
As a result, your code keeps applying the ZeroClipboard to the first element with that ID on every loop.
DEMO — Here's a rewrite of your code.
Make sure you set the SWF path back to /javascripts/ZeroClipboard.swf
in your code.