So here is my javascript code that I am trying to loop in a cycle. Cycle must repeat 156 times for the 156 unique id-s.
$("#w1").click(function ( event ) {
event.preventDefault();
$("#q1").hide();
});
$("#w2").click(function ( event ) {
event.preventDefault();
$("#q2").hide();
});
$("#w3").click(function ( event ) {
event.preventDefault();
$("#q3").hide();
});
...etc