开发者

Html include inside Jquery

Can i place html include inside Jquery?

Here is the code:

    $(document).ready(function(){

$(".photo").hoverIntent(function() {
    $(this).html('CAN I PLACE HERE A HTML INCLUDE?');
}, function() {
    $(this).html('<img src="' + $(this).attr("title") + '" width="248" height="186" style="border-bottom: 1px solid #2B2B2B开发者_开发技巧;"/>');
});

});


Use the load function:

$(this).load('file.html');


Not good, when i use load(file.html); it reddirects my site to that file only.

I just want to replace certain html on my page with jquery

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜