That code will bind fancybox to the element but it does not trigger an actual click event. You would need something like this maybe:
But it all depends on what that element actually is... Is it a link to your inline content? Then just give it a id="fancybox-auto" instead and activate the Auto-open feature in the FancyBox settings.
Read 'Can I make an image or hidden content to pop up in FancyBox on page load?' on http://wordpress.org/extend/plugins/easy-fancybox/faq/ for more...