Reputation: 53
.bind('click',function(){ window.open($(this).find('.pc_more').html()); }); });
is there something in this part of the code that tells it to open the link in a new page? can i put some code to open the link in the same window?
Upvotes: 5
Views: 17328
Reputation: 1074008
You're looking for:
.bind('click', function(){
window.location = $(this).find('.pc_more').html();
});
...assuming that the element matched by .pc_more
really has a link as its HTML.
Upvotes: 8
Reputation: 3503
Try using window.location instead of window.open().
window.location = $(this).find('.pc_more').html();
Upvotes: 3