weixin_33691817 2019-12-17 18:00 采纳率: 0%
浏览 32

包含ajax数据到div

I am using jquery ajax to simply load my website/PWA content into a div. The problem is the webpage inside of the div content is a social network and it has multiple links inside that are clickable and when clicked the window opens the links, breaking my customized header and footer. Is there a way to contain all the links clicked inside of the div contained to the div itself. Something similar to an iFrame. If that makes any sense. Does it help if the social network is a headless wordpress?

$('IdOfButton').click ( function () {
     $('content').load ('/signinup.php') ; 
} );
  • 写回答

1条回答 默认 最新

  • 关注

    You're missing id or class selector in both of your selectors

    JQuery selector can be class selector $('.class') or id $('#id') if you put no selector, like $('content') it will search for <content> elements

    评论

报告相同问题?