I have this jquery
$('#1').fancybox({
'width': '50%',
'height': '90%',
'autoDimensions': false,
'type': 'ajax',
'ajax': {
dataFilter: function(data) {
return $(data).find('.news:first')[0];
}
}
});
$('#2').fancybox({
'width': '50%',
'height': '90%',
'autoDimensions': false,
'type': 'ajax',
'ajax': {
dataFilter: function(data) {
return $(data).find('.news:eq(1)')[0];
}
}
});
is there a possibility combine these 2 into 1
THNX
Your biggest problem is the
dataFilterbut you could try something like this: