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

    评论

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)