I'm comparing two strings exactly equal, but this doesn't seem to work;
var id='example1/example2'
arrId=id.split('/');
$('div',$('iframe').contents()).each(function(){
var div=$(this);
$.each(arrId, function(index, item) {
$.each(div.attr('id').split('/'), function(i, l) {
if(item==l)
alert('equal')
});
});
});
regards