0

i am doing an assignment in programming javascript...and i'm stuck in a problem. It asks to automize a system over the internet to rent a car. the company has overall 8 cars from which 4-are air conditioned and 4- are not. the program should ask the user to press 1 if they want an air-conditioned car or 2 if they want a simple one. the program should also tell the user if they realized the booking or not....
please help me....beybye thnx

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by nccsbim071
0

Use javascript to get input from the user for example:

response = window.prompt("Select Car","Enter 1 if you want Air Conditioned car and Enter 2 if you want simple one:");

document.write('response');

or you can create windows forms and get the values of the textbox using the following code

document.getElementById('txtCarType');

where "txtCarType" is the id of the textbox in which user will enter hir/her choice.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.