Question

in an input field, how can I check that the phone number contains only numbers and...

in an input field, how can I check that the phone number contains only numbers and + - () and space?
I use SIMPLE javascript and HTML.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hopefully this will clear all your doubts.If you still face any query let me know in the comment section.Thank You.

Below are the snapshots of the answer.

Add a comment
Know the answer?
Add Answer to:
in an input field, how can I check that the phone number contains only numbers and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I create an address book where the user enters the name, phone and email in the...

    I create an address book where the user enters the name, phone and email in the input field. This is stored in a list that adds up and shows it in a table below. How can I use a search box to filter the list using a search box? I use SIMPLE javascript and HTML.

  • How to write javascript to do following requirement: I have written code like this: How can...

    How to write javascript to do following requirement: I have written code like this: How can i write the javascript to do the requirement. Add onblur event handlers on each of the text inputs to perform validation based on the specific requirements listed below. Turn that element's border colour to green or red if that input is found to be valid or invalid, respectively * o Name: valid only if the text length is at least 5 characters o Email:...

  • PHP & HTML please Design a web form that contains an input field. The input field...

    PHP & HTML please Design a web form that contains an input field. The input field will accept a list of words that are separated by comma "," . When user hits the submit button, show the results: 1. The count of words. Also show if the count is an even or odd number. 2. The count of words that contains letter 'a' or 'A'.

  • Help with Java function. Suppose I have a string input that contains letters followed by numbers....

    Help with Java function. Suppose I have a string input that contains letters followed by numbers. Can someone write a function that only returns the number values? Ex: Input "dog12" should return 12. Edit: It should return 12 as an integer.

  • Write a calculator program using JavaScript in HTML in the same HTML file. (There will only...

    Write a calculator program using JavaScript in HTML in the same HTML file. (There will only be 1 HTML file containing everything that you use for this program.) *************JavaScript Functions should be written in the HTML <head> .............. </head> tag, **************** (Please be mindful of the formatting of the text of your program. Meaning that do not copy paste everything in a single line. Add clear comments for a better understanding of your program) as follows Assignment: create a form...

  • Numbers with embedded dashes play a huge role in our lives. Think of your phone number...

    Numbers with embedded dashes play a huge role in our lives. Think of your phone number or Social Security number. Write a program that uses a Scanner to take a single line of user input. You may assume this input consists of any number of characters and contains zero, one or two dashes. Use only String's indexOf, lastIndexOf, and substring methods. Sample input might be 123-45-6789 or 919-555-1212 or hare-brained Your program should remove the dashes and print the digits....

  • NEED HELP with HTML with Javascript embedding for form validation project below. I have my code...

    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 =...

  • Develop an HTML form that could be used to enter your book information (Books, Authors, and...

    Develop an HTML form that could be used to enter your book information (Books, Authors, and Publishers) start with the HTML/JavaScript template provided Expand upon it! What field information would you enter into a system? Have your form use more then just character text fields ... radio buttons, pick lists, and other elements make your form easier to use and you don't need to do lots of JavaScript checks. What fields would be mandatory ... which could be left blank?...

  • Im stuck. can someone please show me code on how i can make text appear on...

    Im stuck. can someone please show me code on how i can make text appear on html canvas. i want to create a form where someone for example put their name and when submit button is clicked on the form it appear on the canvas. i am using html javascript. please show code for javascript, canvas, and html. please let me know if im not making sense. Thank you

  • Hello, Using HTML/Javascript, can somebody help me create an array and fill with random numbers 1-100,...

    Hello, Using HTML/Javascript, can somebody help me create an array and fill with random numbers 1-100, per the number entered in the "Create Array" box of my html, and have it display when the "Create Array" box is clicked? Here is the HTML for this portion: Thank you! <table style="width: 850px; height: 154px;" border="0"> <tbody> <tr> <td>Enter Array Size:<input style="width: 50px;" type="textbox" value="100" /><input type="button" value="Create Array" /></td> </tr> This is what the HTML looks like: Enter Array Size:100 Create...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT