maybe try $("#download-link").is(":visible")