I have a "lightbox" plugin installed in my site that I use for my popup windows throughout the site. For one feature of my site I'm doing a cookie check and if one doesn't exist I have a submit form popup in a window; and I would like to use my plugin for that instead of, for example, a window.open. I just need to add a rel="lightbox" to my location achieve that. My current script is:
Code:
<script type="text/javascript">
jQuery(document).ready(function($) {    
    $('.filedownload').click(function() {
        if ($.cookie("AKHDownload")) {
            return true;            
        } else {
            window.location.href = "document-download-form.html";
            return false;
        }
    });
});
</script>
How can I add the rel to the location above?:
Code:
<a href="window.location.href" rel="lightbox">
Thanks!