Simple .show/.hide not working

Try to output some log (console.log) and see which code is called at which timing. That may give you some hints of the problem,