Imagine this:
Use find() method for more info visit this
For eg $("body").find("p").css("background-color","#f00"); sets all body's element background-color to red.
$("body").find("p").css("background-color","#f00");
For your question try this:
$("svg").find("g").click(function(){ // your jquery code here } );