A quick snippet on how to change/add a new Rel to an element.
<script type="text/javascript"> $(document).ready(function() { $("a").each(function(index) { var curRel = $(this).attr("rel"); if (curRel !== "ignore") $(this).attr("rel", curRel + "rel here"); }); }); </script>
This could be useful in instances where you wish to add say a prettyPhoto del ‘prettyPhoto’ to a set of links that have been generated by a 3rd party script.