I have a form and I am using javascript to retrieve the category, subcategory and state. For some reason I am pullint the state and category correctly but get the error messag in firebug of subcategorySelect has no properties var categorySelect = document.getElementById('category') var subcategorySelect = document.getElementById('subcategory') var stateSelect = document.getElementById('state') var state = stateSelect.options[stateSelect.selectedIndex].value var category = categorySelect.options[categorySelect.selectedIndex].value var subcategory = subcategorySelect.options[subcategorySelect.selectedIndex].value Code (markup):
Those messages mean exactly what they say, but without seeing the form it's not possible to locate the exact cause.
Make sure the id of the actual <select> element is "subcategory". It looks like there's a typo in the value used as the elements' id at first glance.