Having this link how can I get only the ?ref="THIS" part?? Because I want to pick only this part of the link with jQuery and then later use it as a variable.. Is this possible?? I want to do it when I'm loading the page. So:
JavaScript:
$(document).ready(function() GET the variable (var variable = ref="THIS";) if(cookie != null){ $("#"+variable).show().$.cookie("actual" , variable); }); Html:
<a href="products.php?ref=oscilobatiente&tipo=7001ad></a>