Question

Can anyone help me make a simple basic review customer pages in JS? Like the user...

Can anyone help me make a simple basic review customer pages in JS? Like the user input their name, rate A to F system and comment? I don’t need color or layout or nothing just basic Thank you!
0 0
Add a comment Improve this question Transcribed image text
Answer #1

In this i just write the code to take input from user like their name and rating and comment then print those in html body by java script.Here in this i have write java script within the html,we can write in .js file then we can include it to html file.

<html>
<head>
<title>NameTest</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
   <form action="PayslipServlet" method="get">
Name:<input type="text" name="name" id="name"><br/>
Rating(A-F):<input type="text" name="rating" id="rate"><br/>
Comment: <textarea name="coment" id ="coment"></textarea><br/>
<br>
<input type="button" value="Submit" onClick="pr()"></br></br>

#when click on this submit button then it display the data given by user.In picture you can see it
<span id="result"></span>
</form>

#Java Script to print review given by user.

<script>
function pr() {
document.getElementById("result").innerHTML = "Your rating:<br>"+document.getElementById('name').value + "<br>" + document.getElementById('rate').value + "<br>" + document.getElementById('coment').value;
}
</script>

</body>

< C File | C:/Users/B.G/Desktop/bg.html Name:Bhanu Rating(A-F)G Everything is good.Need some quality Comment: l Submit Your r

In case any problem,please comment i am happy to assist you

Thank you,have a great day:-)

Add a comment
Know the answer?
Add Answer to:
Can anyone help me make a simple basic review customer pages in JS? Like the user...
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
  • Can anyone help me make a simple maze using C++? Not an actual game just a...

    Can anyone help me make a simple maze using C++? Not an actual game just a maze. I'm learning the basics of C++ and I'm already stumped. I basically need C++ code to create a simple 32x32 ascii portrait of a maze. Please if anyone is a C++ I need some help thank you!

  • Pls, I need help with these numbers, can anyone help me pls, I will like to...

    Pls, I need help with these numbers, can anyone help me pls, I will like to compare my number just to make sure I'm on the right car.  Current Asset /Current liability THIS MY NUMBER    Current Asset   Current liability 8,306,306 + 6,570,520 / 9,992,136 + 7674 670 do i add them both ? or just 8,306,306/ 9,992,136 = 0.84 which of these is the moving trian I WAS ASK TO COMPUTE        (8,306,306 + 6,570,520) =1,4876,828 / 9,992,136 =1.49

  • If anyone can make this coded in C++ language. Thank You Lab2 (1) Protected View -...

    If anyone can make this coded in C++ language. Thank You Lab2 (1) Protected View - Saved to this PC w Design Layout ReferencesMailings Review View Help Tell me what you want to do ue: reo.2u Q1. Write a program that will read your initials and five test scores. Your program should then compute your test average and print all information in a reasonable form with suitable messages Note: use two character variables to read input from the user (storing...

  • Please Help!!! Requirements: Use an external CSS & JS file, no internal or inline styles &...

    Please Help!!! Requirements: Use an external CSS & JS file, no internal or inline styles & scripts Please comment your JS to demonstrate your understanding of what is happening Create a form with at least 2 inputs and a submit button A good example would be First Name, Last Name, and Age. Use JS to provide the user with some feedback on the values they enter or choose with your inputs To do this you will need create a function...

  • Create a React.js website with three pages. A Simple Home page, and about page, and a post page ...

    Create a React.js website with three pages. A Simple Home page, and about page, and a post page Using react Router, link to each different page using a navigation bar built in to each page Your Home page should have some image loaded into it that is not through a external URL. it most be loaded locally in your App. Also let me know through text that it is the home page Your about page will have four colored blocks...

  • Hi I need help with this problem can anyone please help me and please make it...

    Hi I need help with this problem can anyone please help me and please make it clear with step by step solution and please make it clear to read thank you please make sure the answer is correct thankyou Three forces with magnitudes of 51 pounds, 100 pounds, and 129 pounds act on an object at angles of 30°, 45°, and 120° respectively, with the positive x-axis. Find the direction and magnitude of the resultant force. (Round your answers to...

  • Can anyone help me how to create this form and if possible how to use jqueryValidation.org...

    Can anyone help me how to create this form and if possible how to use jqueryValidation.org plug-in against this form to validate user input. Thank you for your time. Assignment - SecurityAnswers.html Using the jqueryValidation.org plug-in, complete the form submission function to perform the following validations. All error messages should appear AFTER its respective form field. Use the GET method to transmit the form to formProcessor.html Make sure that the Secret Word field has data entered into it. If nothing...

  • can you do this js and html question. ill give you the html and js and...

    can you do this js and html question. ill give you the html and js and css files just fix my error use if and else like what i did dont use switch just fix my erorr. <!DOCTYPE html> <!-- Webpage HTML document for Lab 4. Authors: Amirhossein Chinaei, Andriy Pavlovych For: EECS 1012, York University, Lassonde School of Engineering --> <html lang="En"> <head> <meta charset="UTF-8"> <!-- title for web page --> <title> EECS1012: Lab 4 - Computational Thinking </title>...

  • Can someone help me make this basic feasibilty study about Electrical System Design particular on System...

    Can someone help me make this basic feasibilty study about Electrical System Design particular on System Planning. following these... 1. Basic Design Considerations 2. Planning guide or the supply and distributuion system 3. Power System Modernization 4. Voltage Consideration 5. Voltage Control In Electricl Power Systems 6. Voltage Selection 7. Voltage Drop Calculations in Locating LV/HV side 8. Calculation of Voltage Drops Thank in advance!

  • C++ Programming: Customer file Can same one help me out with a example finsih and working...

    C++ Programming: Customer file Can same one help me out with a example finsih and working programm ? Program a simple customer file. Each customer should be defined as a class customer can be modelled with the following attributes: Last name, first name, unique Customer number, postcode, place of residence. Implement the following menu for this: (e) Enter a new customer from Keypad (l) Deleting a customer (a) Output of all customers (x) Exit Comments: - At point (e) the...

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