Hello!
I have a page (index.php) with a pictures carousel that works with css and jquery.
I want to loaded a new carousel into a <div> after the page is loaded using the $('#mydiv').load('myscript.php') function that calls a php script returning the html code for the carousel, containing a list of images.
So I have a <ul> of pictures that doesn't work as a carousel without the CSS and jquery code that has been loaded on the page when my index.php loaded on the first place.
So, since the page has already been loaded the carousel doesn't work properly.
It seems like the jquery code for the carousel to work, should execute every time I load a new list of images with the load() function.
Does anyone have a clue of what I'm getting wrong in the process?
Thanks a lot!