jangomovies
Joined: 26 Apr 2008 Posts: 1
|
Posted: Sat Apr 26, 2008 11:34 am Post subject: Access style properties(custom) from style object in Firefox |
|
|
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 still I am not able to read the properties currency & uppercase.
I have not been able to find a solution for this.
Any help is highly appreciated. |
|