Help please: Intro 3/JavaScript

cybermunky
4 years ago | edited 4 years ago

0

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?

1reply
2voices
864views

0

if the javascript tells you the value of password = correct, then you have to find out what the variable ‘correct’ is.

Good luck

You must be logged in to reply to this discussion. Login
1 of 2

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss