0

Target problem

i want to open href link to open in same page inside the other div . so how can i achieve it. by css and html.. i dont want to use iframe so. tell me another way. thanks

12th Apr 2017, 5:42 PM
Pratul Tripathi
Pratul Tripathi - avatar
3 Answers
+ 4
you'll need JavaScript/jQuery for that. Ajax is the key.
12th Apr 2017, 6:14 PM
Mario L.
Mario L. - avatar
0
$(function(){ $("#header").load("header.html"); $("#user").load("user.html"); $("#display").load("display1.html"); $("#footer").load("footer.html"); }); $(function(){ $('# aside user ul li a').click(function(e) { $('#section').hide().load( $(this).attr('href') , function(){ $('#section').show() }) return false }) })
12th Apr 2017, 7:47 PM
Pratul Tripathi
Pratul Tripathi - avatar
0
$(function(){ $('# aside user ul li a').click(function(e) { $('#section').hide().load( $(this).attr('href') , function(){ $('#section').show() }) return false }) }) THIS CODE I USED BUT DID NOT GET ANY CHANGE
12th Apr 2017, 7:57 PM
Pratul Tripathi
Pratul Tripathi - avatar