

HTML------------------------------------------------------

CSS---------------------------------------------------

WEB230 - JavaScript 1 Assignment 7 - Forms
Some of these tasks would be better done in HTML or CSS but do them in JavaScript to practice what
we have learned.
1. Select the form element and save it in a variable. From here we can access all of the form fields.
2. When the page loads do the following:
add the password value "monkey"
select the favourite city "New York"
clear the textarea
3. Add an event handler to the "name" field to change the background color of the "name" field to
green when the length of the string is at least 5 characters. Make sure the color is removed if the
count goes below 5. (Hint: input event)
4. Add an event handler to the "Show" button to display the password. When the password is
shown change the button to say "Hide" and visa versa. (Hint: change the field type to "text")
Also, prevent the form from submitting.
5. When the checkbox is checked enable the "Send Data" button, when unchecked disable it.
6. When the form submits:
check that the favourite food is "Apple". If not, do not submit the form and show an alert
box that tells the user what food they should like. (Hint: remember that the value of a form
field is always a string.)
See if any text is selected in the textarea. If it is, do not submit the form and show an alert
box asking the user why they selected that text.
7. When the user enters their first name (change event) save the value to localStorage. When the
page loads, check to see if there is a value stored. If so, fill in the first name with that value. (This
is tricky to test since most browsers will keep the form data over page refresh. To check if it is
working, open a new tab in your browser and copy the URL to the new tab. The first name
should be filled in.)
Notes:
do not modify the HTML or CSS files
do not rename the files
follow best practices as discussed
Submission Details:
Include a comment at the beginning of the JavaScript file that includes your name, student
number, assignment name, and the date.
Use camelCase for variable names
Do not concatenate strings, use template literals
Do not use the var keyword - instead use let or const
Do not include any HTML tags in the JavaScript file
Do not use document.write
put your files in a folder and zip the folder (right click - send to --> compress folder)
submit the zip file - do not use any other archive format (ie RAR, 7ZIP, etc.)
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
given below are the project description and their Html and css files i need javascript according to the project and other files!
NEED HELP with HTML with Javascript embedding
for form validation project below. I have my code
below but I'm stuck with validation. If anyone can fix it, I'd
really appreciate.
******************************************************************************
CODE:
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project
Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Nice</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<script>
var textFromTextArea;
function getWords(){
var text =...
given below are the project description and their Html and css
files i need javascript according to the project and other
files!
WEB230 - JavaScript 1 Assignment 6b - Event Delegation Before starting, study the HTML and open it in a browser so that you understand the structure of the document. You will add functionality to perform several tasks in our shopping list app. Clicking the red "X" at the right of an item will delete that item. Clicking on...
Given below are Html files then css file i need the javascript
according to that see the last photos for the detailed description
of what you have to do...i need solution for this! Javascript
Use html form and external javascript for this. and add css for innovation. a. Signup page – for users to signup to the website i. When the user clicks on the submit button, they must see a confirmation alert have signed up. ii. Use a form with six input boxes to allow the user to signup b. Login page – for users to login to the website iii.Use a form with two or more input boxes c. after login user...
Form Processing HTML
One of the most ubiquitous uses of JavaScript is validating form
data on the client side before it is submitted to the server. It is
done everywhere because it is fast and it gives you a great deal of
flexibility in how you handle errors insofar as the GUI is
concerned.
Attached is an image of some code I wrote (so Blackboard can't
mess it up). Some things to notice that will help you with the
lab....
Please help with this assignment section A. This question is
from world wide web Info Sys Dev.
Section A te HTML/JavaScript web page called sectiona.html, that has the fpllowing items: a. 2 text items labeled as "CAD Dollar" and "US Dollar", the first(CAD dollars) is enabled with id-"cad", while the later is disabled with id-us" b.1 button named as "convert". functionality: When the user clicks on the button, a JavaScript function named "convert" will be called to convert the value...
Create an external JavaScript file/code and then write a function that displays an alert box. This box will display when the user clicks the submit button to submit the information typed in the form, so be sure the alert box contains an appropriate message. please use the OnClick event handler for your form's submit button.
***JAVASCRIPT***
I need JAVASCRIPT codes for this question. Also a little
explanation and full screenshots of the codes.
Short 6-1 Upgrade the MPG application In this exercise, you'll upgrade a version of the MPG application so the error messages are displayed in span elements to the right of the text boxes. Estimated time: 10 to 15 minutes. Calculate Miles Per Gallon Miles Driven Mies must be numeric and greater than zero Gallons of Gas Used Gallons must be numeric and...
Create a folder named "TrainerApp". In that folder create the following files. Create a PHP file, "insert-user-form.php", with a form that has the following fields: - First Name (text) - Last Name (text) - Email (text) - Password (text) - Submit button Create another PHP file, "insert-exercise-form.php" with a form that has the following fields: - Exercise Name (text) - Description (text) - Demonstration Image (file) - Submit button Create another PHP file, "login-user-form.php" with a form that has the...
Javascript to edit a HTML file. Where to begin? <!doctype html> <html> <head> <meta charset="utf-8"> <title>TODO: Change The Title</title> </head> <body> <h1></h1> <p>First paragraph.</p> <p class="intro">Second <span>paragraph</span>.</p> <button id="start">Start</button> <main> </main> <!-- Test 6: DOM Programming You MAY consult the notes for week 7, but you MAY NOT discuss this test or your code with any other students. All work must be your own. Instructions: 1. Put all solution code in a file named solution.js. When you upload your solution to...