Question: In the JavaScript file, note that the jQuery ready event handler contains three functions: the getRandomNumber() function, the handler for the click event of the

In the JavaScript file, note that the jQuery ready event handler contains three functions: the getRandomNumber() function, the handler for the click event of the Get Password button, and the handler for the click event of the Clear button.

The handler for the Get Password button clears the password text box and has a string variable that contains several characters, but it doesnt do anything else. The handler for the Clear button resets the text boxes and moves the focus to the first text box.

In the handler for the Get Password button, get the value entered by the user and make sure its a number. If it isnt, display an alert dialog box with this message: Please enter a valid number.

If the number entered by the user is valid, code a for loop that iterates that number of times. In each iteration of the loop, randomly select one of the characters from the chars variable and concatenate it to the password variable.

When the loop is finished, display the password in the password textbox.

Code I have so far:

Password Generator

Generate a strong password

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!