Full-Stack freelance Umbraco developer in the UK.

George Phillipson - Freelance Umbraco developer

Check if element is visible and perform action using jQuery

<form>
    <button id="btnHideMeIfImVisibleOnPageLoad">Hide me if I'm visible</button>
</form>
<script>
    $('#btnHideMeIfImVisibleOnPageLoad').filter(":visible").animate({ width: "toggle" });
</script>

Please enter your comment.