1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vampirchik [111]
3 years ago
9

g Fill the validateForm function to check that the phone number is 10 characters long and that the user name is less than 11 cha

racters long. Display "Phone number is invalid" and/or "User name is invalid" in the console log if the check does not pass. Use the preventDefault function to avoid submitting the form when the inputs are invalid.
Computers and Technology
1 answer:
Rom4ik [11]3 years ago
8 0

Answer:

function validateForm(event)

{

event.preventDefault();

var phoneNumber = form.phoneNumber.value;

var userName = form.userName.value;

if(phoneNumber.length!=10)

console.log("Phone Number is Invalid");

if(userName.length<11)

console.log("User Name is Invalid"); }

You might be interested in
In a relational database, the three basic operations used to develop useful sets of data are:_________.
olga_2 [115]

In a relational database, the three basic operations used to develop useful sets of data are:

\sf\purple{a.\: Select, \:project,\: and\: join. }

\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}

6 0
3 years ago
Why is it important to prepare the farm resources before you start working? explain​
motikmotik
The planning process helps to: Identify the goals of the farm business (what you want to accomplish); Identify the farm's inventory and resources (what you have to work with); Assess the farm business and the environment in which it operates (where you are and where you may want to go);

6 0
3 years ago
You can italicize a word by selecting it and clicking the Italics icon. What keyboard shortcut could you use instead of clicking
bogdanovich [222]
If I were you, I would just try each of these. But the actual answer is C. Ctrl+U
The first one is used to copy the text (C-Copy)
The second one bolden your text (B-bold)
The last one is used to manage the scale.


7 0
3 years ago
The first widely adopted windows product, ____, featured a standardized look and feel, similar to the one made popular by apple'
slega [8]
<span>The first widely adopted windows product, Windows 3, featured a standardized look and feel, similar to the one made popular by Apple's Macintosh computer .
</span>
Microsoft’s Windows operating system was first introduced in 1985, Windows 3 which was released in 1990 was the first version to see more widespread success, because it had the ability to run MS-DOS programmes in windows which brought multitasking in programming.


8 0
3 years ago
Imagine you are asked to set up a network for connecting 50 computers in an office environment. Discuss the type of network you
Contact [7]
Here's an outline

(I suck at writing)

hope this helps!!

7 0
3 years ago
Other questions:
  • Dan needs to ensure that delegates as well as those looking at his shared calendar information are unable to see the details of
    7·1 answer
  • Which keywords identify a column that , if it contains a value, it must match data containded in another table?
    14·1 answer
  • The refresh or reload button is in the browser toolbar and usually looks like a pair of curved arrows. Clicking it will ________
    14·2 answers
  • In ____, data can move in both directions at the same time, such as with a telephone.
    11·1 answer
  • What will happen if you reverse the connection of IDE?<br>​
    9·1 answer
  • What is the purpose of a report?
    6·2 answers
  • I’ll mark who ever is first or last Doesn’t matter JUST PLEASE HELP
    8·1 answer
  • Question #1
    5·2 answers
  • Computer science - algorithms - flowcharts
    11·1 answer
  • Need help completing this coding assignment.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!