Select 2 images from list with JQuery THEN call PHP query

Thank you.