Friends
light box not working in Chrome and IE but working for Mozilla. Its a coding problem I think,pls help me with a solution. I have given the code below.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> function check(chkbox,srr) { if (chkbox.checked) { var sre = $('srr'); $(function() { var lightboxHTML = '<div id="overlay"></div>' + '<div id="lightbox">' + '<a href="#" id="exit" onclick = "close2()">Close</a>' + '<img src='+sre+'/>' + '<p/>' + '</div>'; $(lightboxHTML).appendTo('body').hide(); $('#overlay').css('opacity', '0.8'); //$('img', '#lightbox').attr('src', sre); $('#overlay, #lightbox').show(); event.preventDefault(); }); } } </script> <script type="text/javascript"> function close2() { $(function() { $('#lightbox, #overlay').hide(); event.preventDefault(); }); } </script>