I have a `iframe` in one of the `jQuery ui tabs` opened which has a `button` on click of which i need to switch to another tab

I tried using 

```
$( "#tabs" ).tabs( "select" , 1 )

```

But it seems that I can not access the tabs outside iframe