...

View Full Version : How to access the style/attribute properties in Firefox



jangomovies
04-26-2008, 02:22 PM
Hi,

I am making use of the style object in HTML like style={currency:1,upperCase:true}.
I access this in the Javascript for validation using form.element.style.currency etc etc.

In IE in works fine and I have no issues.
However, in Firefox/Mozilla, I am getting the value as 'undefined' and hence all my validations fail.

I tried to modify the code to use form.element.getAttribute('style'). But how can I read the values for currency & uppercase from this style object.

If I am not using style but some other attribute like, myattribute={currecny:1,property1:2}, how can get the values for currency & property


I have not been able to find a solution for this.
Any help is highly appreciated.

oesxyl
04-26-2008, 03:48 PM
why do invent such a mess?
html and css are standards.

regards

jangomovies
04-26-2008, 04:39 PM
Thanks..
If I am not using style, and use some other attribute like

myattribute={currecny:1,property1:2}, how can get the values for currency & property in my javascript.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum