Using jQuery or JavaScript to Add Attribute to Anchors After DOM Already Loaded
<p>I have an application that requires the "ontouchstart" attribute to be added to each and every anchor in order to have the anchor:active CSS state to work on iOS devices.</p>

<p>Trouble is that the entire application loads content via AJAX after the DOM has already loaded, which means any <code>$(selector).attr('ontouchstart','')</code> call will only work on the initial screen, not content added later via AJAX.</p>

<p>Because each screen is being loaded by separate functions (in some cases being constructed by the function itself) I would like to find a solution that allows a single jQuery or JavaScript call that applies to all anchors, even those added after the DOM is loaded rather than going through each and every function and adding in the call individually (there are hundreds of them).</p>

<p>Is this even possible? Any help would be greatly appreciated.</p>
