![]() |
Alert Messages
Hi there,
I am trying to make alert messages for when neither a flight nor seating preference has been made, and it's a struggle. Any help would be amazing. Code:
<!DOCTYPE html> |
If you post any code please put it in between [CODE][/CODE] tags. It makes scanning your posts much easier. You can do this by clicking the small ‘#’ icon above the reply field.
|
You need to declare a variable and set it to 0 at the start, then add to it if a button is checked. If the variable still == 0, no buttons have been checked.
Code:
function calculateCost() { Code:
<input type="submit" value="Calculate" onClick="return calculateCost();"> |
Wow, thank you. I did all kinds of different things, none of which actually worked. Thank you heaps x
|
What is supposed to happen when the person clicks on the checkbox in the alert that turns off JavaScript?
|
| All times are GMT +1. The time now is 10:35 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.