It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Access style properties(custom) from style object in Firefox

Access style properties(custom) from style object in Firefox

Postby jangomovies on Sat Apr 26, 2008 10:34 am

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.
jangomovies
 
Posts: 0
Joined: Sat Apr 26, 2008 10:05 am

Who is online

Users browsing this forum: No registered users and 7 guests