What is wrong here? I want replace ul content with other content
$('#carouselselectitem1').click(function() {
$('#foo2').html('<li><div id="lines"></div><div id="tittle">2 PROGRAMEO, LONDRES</div><div id="image"></div><div id="text">LOREM IPSUM XHTML+CSS3 HTTP://WWW.url.com/</div></li>');
});
Your fiddle includes mootools instead of jQuery.
You have a line break in a string in your fiddle. Either remove it or add a
\at the end of the first line of the string like below: (notice the\at the end of the 2nd line of code below)Working demo