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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.