I’m using bxSlider for a website and I need to get the caption to use the title AND alt attributes.
The code in the bxSlider jQuery is as follows;
{var c = a("img", g.eq(x)).attr("title"); if (c != "") { if (b.captionsSelector) { a(b.captionsSelector).html(c) }
Now, I can easily change this to use one, or the other, attribute. I’m unsure ho to get this to use BOTH title and alt.
thanks in advance.
I’ve solved this… For anoybody looking for a similar solution in the future it’s as simple as adding;
So this;
Becomes this;