lightbox dosn't work afrer using .load();
if i use foto gallery with plugin '
lightbox balupton edition' like this:
include css and js, then
- <div id="btn_cont">
- <ul>
- <li><a href="1.jpg" rel="galery" class="btn"><img src="1/1.jpg"></a></li>
- <li><a href="2.jpg" rel="galery" class="btn"><img src="1/2.jpg"></a></li>
- </ul>
- </div>
This way all work perfectly.
But then i try to do somehing like this:
- $(document).ready(function(){
- $('a[href*=something]').click(function(){
- $('#btn_cont').load('3.html');
- return false;
- });
- });
there 3.html contain other ul, li, etc. Then content on my page is change to content from 3.html, but lightbox dosen't work anymore..
So, can anybody tell me where i'm wrong? and yes, i'm really noob in javascript yet :)