JSFiddle - React, Tailwind, and code Playground
by davehol
JavaScript
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const hsr = urlParams.get('courseid')
var check = setInterval(function() {
if (hsr == "s150069" || hsr == "s150070" || hsr == "s174035" || hsr == "S174037") {
var element1 = document.getElementById('tfa_86');
element1.value = "show";
if (element1 != null) {
var event = new Event('blur');
element1.dispatchEvent(event);
}
}
}, 1000);
setTimeout(function() {
clearInterval(check);
}, 10000);