Sometimes we need to resize colorbox after clicking on sumbit button and we want to show some error or success messages on the same popup window by using javascript or ajax but due to pre rendered size of the colorbox, It overrides other contents means contents go under the colorbox. So how to resize colorbox is good query here.
Resizing Colorbox :
1 2 3 4 5 | $(document).ready(function(){ $.fn.colorbox.resize(); }) |
We can call it just after the click on submit button or reloading on content. It will resize the colorbox popup according to content.
If you are facing any issue regarding colorbox as well as fancybox then post us your query. We will try to provide you a solution as soon as possible.