Custom jQuery Request

Can you please help me in writing a jQuery script so the navigation buttons are hidden if there is no content in that link? I mean, when the button is disabled, I need to hide the button.