Close ColorBox Popup Using Custom Button :jQuery

Hello Friends,
If you want to close the ColorBox Popup window using your custom button then use given code on your site.
Example : <input type=”button” value=”Continue to map” id=”et-reset” class=”custom-close”>
 

<script>
colorbox = jQuery.colorbox;
jQuery(".custom-close").click(function() {
        colorbox.close();
    });
</script>

Hope you all will be enjoy this script.
http://www.jacklmoore.com/colorbox/
Happy New Year To All My Friends!

3 Replies to “Close ColorBox Popup Using Custom Button :jQuery”

    1. Hi Jaya,
      Thanks for visit to my blog.
      You can open colobox on click on any tag..follow given below example.

      Click here to open lightbox


      $(document).ready(function(){
      $(“.inline”).colorbox({inline:true, width:”50%”});
      })

      This content comes from a hidden element on this page.

      The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.

      Click me, it will be preserved!

      If you try to open a new Colorbox while it is already open, it will update itself with the new content.

      Updating Content Example:

      Feel free to contact me for any query.

Leave a Reply

Your email address will not be published. Required fields are marked *