how can I call colorbox and the URL from a jquery link?
I have this:
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
And then I have this:
onclick=""
And I would like to be able to specify the address in the onclick=""
function.
Sorry, I tried to shorten my question so there isn't a wall of text:
I want to change this link:
<a class='iframe' href="www.google.com"></a>
To a Jquery one.
Most solutions I've looked up have done this:
onClick="lightbox()"
$.fn.colorbox({width:"80%", height:"80%", iframe:true, href:"www.google.com"});
However that would require me to create a colorbox function for each address, and I have lot's of them. Thanks for understanding :)
I'm sorry, I just realized that the current version of colorbox doesn't work with jQuery 1.6.3, and I can't seem to find a download link for older versions. Thanks anyways everyone!