index.html
Copy
<ul> <li id="touchSlider2li"> </li></ul><button id="webtoon_more">더보기</button><script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script><script type="text/javascript"> //<![CDATA[ $(function(){ $("#webtoon_more").click(function(){ $.ajax ({ type:"GET", url:"inc_clist_ajax.html", dataType:"html", error : function(){ alert('통신실패'); }, success:function(result){ $("#touchSlider2li").html(result); } }); });});//]]></script>
inc_clist_ajax.html
Copy
<img src="이미지경로" width="80px" />
제가 만든 소스인데요 webtoon_more 요소를 클릭시 inc_clist_ajax에 있는 이미지를 불러오려 하는데
잘 되지않네요.. 텍스트는 가져오는건 잘 나오는데 .. 뭐가 문제일까요?
답변 1개 / 댓글 1개
답변을 작성하려면 로그인이 필요합니다.