0

jqueryでGBをターゲットにするにはどうすればよいですか?

htmlはこちらhttp://jsbin.com/opedih/1/edit

以下のようなものが必要です

 $("g[data-code='GB']").mouseover(function(){
     alert('test');
});
4

1 に答える 1

1
    $('g > path[data-code="GB"]').mouseover(function(){
        alert('test');
    });
于 2012-10-04T20:20:51.300 に答える