Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to access the style/attribute properties 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 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.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    why do invent such a mess?
    html and css are standards.

    regards

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •