solution:
given data:
17.
<html>
<body>
<form method="POST" action="process_data.inc.php">
Name: <input name="Username" type="text" />
<br/>
What are you favorite fruits <br/>
<select name="fruits[]" multiple="multiple">
<option value="Apple">Apple</option>
<option value="Orange">Orange</option>
<option value="Banana">Banana</option>
</select>
<br/>
<input type="submit" name="submit" value="submit"/>
</form>
</body>
</html>
please give me thumb up
17. Write a simple HTML form that ask user for name and multiple options favorite fruits....
HTML------------------------------------------------------CSS---------------------------------------------------WEB230 - JavaScript 1 Assignment 7 - FormsSome of these tasks would be better done in HTML or CSS but do them in JavaScript to practice whatwe 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 textarea3. Add an event handler to the "name" field to change the background color...
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....