Check out this code snippet:
<span class='maincaptionsmall'>
Test
</span>
Due to certain ajax and jquery scripts on my page, I am unable to use HREF as a link. In other words, the following code won't work:
<span class='maincaptionsmall'><a href="http://google.com">Test</a></span>
So, how can I utilize jquery to select this css element maincaptionsmall
and turn it into a clickable link?
I am restricted from using <div>
tags and must stick with <span>
for everything. Can you provide an example of how to achieve this using jquery?
Appreciate your help in advance