For some reason the following code breaks my entire Javascript page. (It’s for the iPhone).
function validate(){
var ablebuttoncheck = document.getElementById('ablebutton').innerHTML;
var datebuttoncheck = document.getElementById('datebutton').innerHTML;
if (ablebuttoncheck =! "Select Date" && datebuttoncheck =! "Select Action"){
document.save.savebutton.disabled=false;
}
}
If you need the full code see here: http://pastebin.com/R2rQa4s8
On my iPhone I click the buttons and nothing happens. I just want to force the user to press both buttons and select before submitting the form.
You probably mean: