I have a piece of javascript that works perfectly in al other browers, including mobile...except internet explorer. This is the code causing me trouble: function calcQuote (form) { var fromengv = form.fromeng.value; var toengv = form.toeng.value; var nowords = form.nowords.value; var sector = form.sector.value; var type = form.type.value; var trans = form.trans.checked; var proof = form.proof.checked; if (fromengv == "None" && toengv == "None") { alert('No language selected!'); } else if (fromengv !== "None" && toengv !== "None") { alert('Please select one language combination only!'); } else if (fromengv !== "None" && toengv == "None") { ....... } Code (markup): Values are taken from a form on submission and check them with the code above. In IE it is returning the error message "Please select one language combination only" under every condition, ie, both are none, one is none, none are none. What could be causing this?
Problem solved - it was a blatent schoolboy error. The values in question were coming from a <option> field, I forgot to add the value="" into it, all other browsers take the value between the <option></option> if a set value is not set.