How to bind two document objects to single jquery function
- by dbr
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) {
});