tags:

views:

34

answers:

2

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;"/>');
});

});
A: 

Use the load function:

$(this).load('file.html');
Sarfraz
A: 

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

webmasters