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:
var elms=document.getElementsByName("checkableitems[]");
var lunghezza = elms.length;
for (i=0;i<lunghezza ;i++){if (elms[i].type="checkbox" )elms[i].click()};
I discovered that the modal windows to invite guests is inside an iframe but i can't checkboxes inside it!
I've used
jQuery('iframe#iframe_sbx_id').find('input[type=checkbox]').click()
but it doesn't work because find() returns an empty set. Any idea on how to do it?