.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?
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.
Live example
Try using window.location instead of window.open().
window.location = $(this).find('.pc_more').html();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With