I am using the [.on()](http://api.jquery.com/on/) function to bind a event on button that is located in frame. Because the button, can be rendered in the future i am using the following syntax:

```
$('#myIframe').contents().on('click','.myButton img[src="/myImage.gif"]',function(){

});

```

But what I met as a great issue is that I am selecting the button by its class and source attribute value as follows:

```
$('.myButton img[src="/myImage.gif"]').parent()

```

How can I add this "parent()" part in the on. function "selector" parameter? Is it possible at all?

Note, I am not able to change the content of the frame as adding id to the button.