Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need Help With Removing A Style Sheet Via JQuery Reply To: Need Help With Removing A Style Sheet Via JQuery

#158210
Tom Houy
Participant

Ok, there seems to be a timing issue. When I put a delay on the script, it works fine and removes the CSS as I wanted. What I’m looking to do at this point is to just somehow fire this script exactly when the other one finishes running.

<script type="text/javascript">
setTimeout(function() {
    $('link[href="https://www.demo.com/stylesheet.css"]').prop("disabled", true);          
}, 2000);
</script>