I am trying to open a new colorbox window when one is closed.
I’m using this code:
$(".inline").colorbox({
inline: true,
width: "50%",
escKey: false,
onClose: function() {
$('#newWindow').show();
}
If there anything wrong with this code?
Description
Assuming your using jack moore’s colorbox jQuery plugin you have to change
onClosetoonClosedand useopen:true.And you always have to close the function.
Check out the jsFiddle Demonstration.
Sample
Html
jQuery
More Information
Update