I have this code
<div class="wrap-box-video" id="31">
<div class="addfav">
</div>
<img src="/etc.jpg" />
</div>
and with this code
$(document).ready(function(){
$("div.addfav").click(function(e){
window.location = "?wpfpaction=add&postid=" + $(this).parents(".wrap-box-video").attr("id");
});
});
i want to load the ?wpfpaction=add&postid=31
(in this exemple) but not to show in the url tab i want this to be underground. if i'm on exemple.com
page and i click the addfav
div i want the exemple.com to be the same but the script to work.