Hi
Do help me in this simple scenario .. The Below code works completely fine But the thing is required is
Requirement :
The line that prints out from my javascript function needs to print at the BOTTOM of the existing page, under the button. Nothing else on the page will change, and the user will not be taken to a new page at any time.
var age;
function getAge()
{ age=prompt("Enter Customer's Age");
if (age<5)
{ document.write("Cost of Ernest's ticket is $2.00");} //**********THIS IS WHAT I'M TALKING ABOUT
else if (age>=5 && age<=15)
{document.write("Cost of Ernest's ticket is $6.00");}//**********THIS IS WHAT I'M TALKING ABOUT
else if (age>15)
{document.write("Cost of Ernest's ticket is $8.00");}//**********THIS IS WHAT I'M TALKING ABOUT
}
Ernest Tee's Soccer Ticket Price
This page will decide the cost of Ernest Tee's soccer ticket price based on his age.
Click on the button below to enter Ernest's age
- Under age 5 (age < 5) cost is $2.00
- Between ages 5 and 15 (5 ≥ age ≤ 15) cost is $6.00
- Older than 15 (age > 15) cost is $8.00
Thank you

Scott LyslePosted Oct 16, 2013, 2:30 PM
Ernest Tee's Soccer Ticket Price
This page will decide the cost of Ernest Tee's soccer ticket price based on his age.
Click on the button below to enter Ernest's age
Pricing Unknown