I’m trying to load a Div which is selected by a click, I save the txt from it so it can show the wanted one.
How do I tell jquery which div to load? Here is the code.
$('li').click(function(){
var selected = $(this).text().toLowerCase();
var thisone = $ ('#'+ selected);
$('#inhere').load('secondcontent.html thisone');
$(thisone).slideDown(200);
$(thisone).addClass('online');
$('.bubble').fadeIn(900).delay(2000).hide(200);
});
$('.close_pseudo').click(function(){
$('.online').slideUp(200).removeClass('online');
$('.bubble').hide();
});
You may be a victim of PHP-like thinking here. You need to point to a particular div like this: