Here is my jQuery:
<script src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/thickbox.js"></script>
<script type="text/javascript"
$('#button').click(function(){
$('#TB_window').fadeOut();
});
</script>
Html:
<input type="submit" id="button" value="clse" >
I tried this function, but it's not working.
tb_remove
just call this methodtb_remove();
wherever you need. It will close thickbox properly. read more my answer written below . stackoverflow.com/a/21216272/1124612