I have code that loads image from another page using Jquery and Ajax.
$('a').click(function(){
$('<div id="smiley">').load("ajax.html img",function(){
$(this).hide().appendTo('#new').fadeIn()});
return false;
})
However, there are two problems: 1. I cant stop link from opening other links on page in the same time (even I do a#box or something like that.) 2. Images keeps loading every time I click a link.I tried return false,*preventDefault* but nothing seems to work. Any idea?
Thanks Miro