I have a lightbox set up on my site with titles that look like this
<div class="Container" id="">
<a href="Link" title="titleVar">Cool Picture</a>
<a href="Link" title="titleVar">Cool Picture</a>
<a href="Link" title="titleVar">Cool Picture</a>
</div>
and the list is going to keep growing. Is there a way I can have a second file where I keep all the titles and they get populated where the "titleVar" is? Right now what I am doing is putting the titles directly in there and the code is getting really messy because the titles get pretty long sometimes
Edit: To clarify when I say a "second file" I mean a separate html or xhtml list specifically designated for the titles. I remember seeing something similar once with a span tag
<span>title1
title2
title3
title4
title5</span>
and these were able to be populated. The problem is I can't find the file I did this with
myObject["$(this).data('title')"]is this what you want?