javascript - jQuery how to load a div from a other page using load -
i have little project need show items on 1 page other have little categorie can click on. pick attr("href"); , set page load. works.
 how add <div> online load <div class="holder"></div> , not whole div?
 function:
function setupcasesfilter()  {            j(".casemenu a").click(function(e) {         e.preventdefault();         j("ul.casesholder").load(j(this).attr("href"));      }); }   where can add class inside attr("href")); ?
if want load specific div element url use way:
j("ul.casesholder").load(j(this).attr("href") + " .holder");    what seems me have .holder div on href page loading, can pass div's class name want load space ex. page.html .holder.
Comments
Post a Comment