How to bind two document objects to single jquery function

Posted by dbr on Stack Overflow See other posts from Stack Overflow or by dbr
Published on 2010-03-30T02:39:06Z Indexed on 2010/03/30 2:43 UTC
Read the original article Hit count: 418

Filed under:
|

I have a custom jquery function that I need to bind to two iframe document objects.

Currently it will work with just one doing something like:

$(window.frames["iframeName"].document).bind('textselect', function(e) {

});

what I'm looking to do is something like:

$(window.frames["iframeName"].document,window.frames["iframeName2"].document).bind('textselect', function(e) {

});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript