oh thanks. It worked but i'll like it to be done for all pages please. how can i do it please?
also thanks for the selection sequence but my lecturer does not want it like that actually, nevertheless thanks.
Concerning the language, thanks, i did not know. I 'll post my survey later on prolific. Will this be an issue?
Also, let me provide you with the html code i'm using. I will like to do it for my whole questionnaire and not just for one question. Any idea how i could get the HTML IDs automatically or so please?
<script>
document.addEventListener('DOMContentLoaded', (event) => {
function hideElements() {
var image = document.getElementById('imageToDisappear');
// var answers = document.getElementById('questionAnswers'); // Assuming the answers have this ID
var questionContainer = document.getElementById('questionAnswers');
var tabElement = document.getElementById('s2tabs_items_sheet_items_quick');
if (image) {
image.style.display = 'none';
}
if (answers) {
answers.style.display = 'none';
}
if (questionContainer) {
questionContainer.style.display = 'none';
}
if (tabElement) {
tabElement.style.display = 'none'; // Hide the entire div
}
}
// Define countdown after 10 seconds
setTimeout(hideElements, 11*1000);
window.setTimeout(function() {
document.getElementById("A001_tab").style.display = "none";
}, 10*1000);
});
</script>
Thanks in advance.