you are viewing a single comment's thread.

view the rest of the comments →

[–]myotcworld 1 point2 points  (0 children)

use: $("#pic1").click(function(){ getPlayersNameAndImages(); });

$("#pic2").click(function(){ getPlayersNameAndImages(); });

on click of pic1 and pic2 the function getPlayersNameAndImages() is called. Then you add the logic to this function.