Javascript Functions/Validations In Firefox

  MogsyDude22 02 Dec 08


I am relatively new to Javascript but do understand a bit about it, I have been working on a form that contains all dropdown menus that contain answers to the question that are asked. I have the values of the dropdown boxes setup fine and all the functions to validate the form are fine as far as I am aware as it works in Internet Explorer. But I cannot for the life of me get the Popup alerts to work in FireFox or Google Chrome. And also the submit button down the bottom of the page does not work either in FireFox or Google Chrome.

This is the code I have, can anybody please shed some light on this...

function formVal()
var dd = document.getElementById;

if(dd('tes1').value == "na")
alert('Test question 1?');
return false;

if(dd('test2').value == "na")
alert('Test question 2?');
return false;

if(dd('test3').value == "na")
alert('Test question 3?');
return false;


This thread is now locked and can not be replied to.

Windows 10 Home vs Windows 10 Pro comparison: Here are the extra features you get in the Pro version

Why Formula-e needs to go faster

Found Studio reveals the making of the Unleashed, Uncut Peugeot 208 viral

How to use Apple Music in the UK: Complete guide to Apple Music's features

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message