today i was wondering how i can hide the close button on fancybox.

there are two ways:

set modal to false like this:

modal:false,

example:
$(".fancybox-thumb").fancybox({
modal:false
});


i wanted to close the x close button from my ajax, so all you have to do is use this function:

$(".fancybox-close").hide();

hope that helps