I've been able to retrieve all <a href=""> with class various.
I need to write some script that grabs href from these a (everyone has different) and post it to popup.php.
Tricky part is that href has gallery_popup.php??id=XX, and the only thing that I need to post is that ID.
I decided to go with variables, so first:
var href = $('.various').attr('href');
I grab the href. Then I woul like to rip all unnecessary things and leave only ID number and save it to Var = IDnumber
And then
$(".various").click(function () {
   $.post('gallery_popup.php', IDNumber;
});
 
     
     
     
    