Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not getting values in mozilla firefox 1

Status
Not open for further replies.

Sniipe

Programmer
Oct 9, 2006
115
IE
Hello all, I'm getting all the inputs from text boxes. The text boxes have defaults and when I enter a value in one it doesn't get the value from the following code:

allinputs.getAttribute("value")

perhaps value isn't recognised by mozilla, butit does work for IE.

note: allinputs being a textbox
 
Simply use
[tt]allinputs.value[/tt]
Rule of thumb is that if you define a custom attribute, you "must" use getAttribute() to get it in moz/ff. But attributes like id, value... are not custom-made, you have to use dot-attribute-name format to retrieve it. I am talking about moz/ff behaviour.
 
tsuji, thank you oh so much :D That worked. I was over zealous in my usage of getAttribute() and thanks for your rule of thumb.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top