CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: FireFox issue!!

  1. #1
    Join Date
    Mar 2007
    Posts
    116

    Lightbulb FireFox issue!!

    This line of code is not working...

    document.getElementById('txtCommissionBalance').innerText = valuefinal.toFixed(2);

    Because of innerText ??
    Please let me know where I am wrong.

    Thank,
    Last edited by Frank100; September 23rd, 2010 at 04:19 AM.

  2. #2
    Join Date
    Aug 2000
    Location
    Essex, Uk
    Posts
    1,214

    Re: FireFox issue!!

    If you install Firbug and the developer toolbar for firefox, you should be able to step your code in the browser and see what the browser is referencing (both are firefox add-ons)
    If you find my answers helpful, dont forget to rate me

  3. #3
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: FireFox issue!!

    Isn't it "value" and not "innerText" you need to use to access a text fields text value?

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: FireFox issue!!

    It should be actually value, are you confusing yourself with innerHtml with innertext ?
    Regards,
    Ramkrishna Pawar

  5. #5
    Join Date
    Apr 2006
    Posts
    220

    Re: FireFox issue!!

    change it to
    Code:
    document.getElementById('txtCommissionBalance').value = valuefinal.toFixed(2);

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured