Home › Forums › JavaScript › Need Help With Removing A Style Sheet Via JQuery › Reply To: Need Help With Removing A Style Sheet Via JQuery
December 11, 2013 at 6:19 pm
#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>