Hey everyone,
I need to work on my JavaScript quite a bit. So I feel certain the answer is in the following:
$(function(){ $(‘.level form’).submit(function(e){ e.preventDefault(); if(document.getElementById(‘password’).value == correct) { document.location = ‘?pass=’ + correct; } else { alert(‘Incorrect password’)
I am guessing I have to trigger an alert of some sort but not entirely sure how. Can someone point me in the right direction? Anything to get me going. Even reference material. I feel as though I am right on track but falling short. Can I get a nudge in the right direction please?