Quote:
|
And I'm guessing this [''] would contain the name of the form, in this case 'dropdown' if im right? but not sure what the ID can be used for as above?
|
The name of the form element is what would be in quotes, but you are correct in saying it would be "dropdown".
The element ID attribute is not used in HTTP requests but can be used should you need to read from or write to the element using javascript.
var myValue = document.formname.elementname.value
var myValue = document.forms["formname"].elements["elementname"].value
var myValue = document.getElementById("elementid").value
Are all valid methods of reading the value of a <input> element.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|