Check all checkboxes inside an iframe (when inviting guests to a facebook event)
<p>i'm trying to check all checkboxes when inviting guests to a facebook event. Facebook has changed something i think beacuse i usually used this code and now it is not working:</p>

<pre><code>var elms=document.getElementsByName("checkableitems[]");
var lunghezza = elms.length;
for (i=0;i&lt;lunghezza ;i++){if (elms[i].type="checkbox" )elms[i].click()};
</code></pre>

<p>I discovered that the modal windows to invite guests is inside an iframe but i can't checkboxes inside it!</p>

<p>I've used </p>

<pre><code>jQuery('iframe#iframe_sbx_id').find('input[type=checkbox]').click()
</code></pre>

<p>but it doesn't work because find() returns an empty set. Any idea on how to do it?</p>
