Hi there !
I have something like this HTML structure :
<form name="myvalue" id="hello">
<input type="text" name="name" />
</form>
I'd like to retrieve the form's name attribute in Javascript, with a cross browser solution.
Obviously,
document.getElementById("hello").name
won't work because it will return the corresponding input object.
Under chrome, following code works, but I didn't succeeded to find the equivalent for Internet Explorer 8
document.getElementById("hello").getAttribute("name")
Thanks in advance !
Frédéric