Limit answer attempts and hide solution until max allowed attempts have been reached
I have added the following jQuery code to limit attempts to 3 times and to hide the solution until all three attempts have been executed:
(check_count is a variable in the main document that is counting the attempts and is initially set to 0)