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

    Help need on Helpgrid and innerhtml

    Hi how can we display this text(This will change the status of the records)
    in bold color and large font in the following tag

    <helpgrid id="changestatus_help" innerhtml="This will change the status of the records." />

    any help................

  2. #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 932 Times in 919 Posts
    innnerhtml is not an HTML attribute.

    It iisn't a part of JavaScript either although JavaScript has something with a simiilar name - innerHTML.

    <helpgrid id="changestatus_help"/>
    <script type="text/javascript">
    document.getElementById('changestatus_help').innerHTML = 'This will change the status of the records.';
    Also if you are really using XHTML 1 or XHTML 5 as the self closing tag indicates then you can substitute type="application/javascript" for the obsolete but still needed for IE8 and earlier type="text/javascript" since IE8 and earlier don't support either the correct type for JavaScript or XHTML but all browsers that do support XHTML also support the correct type for JavaScript.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


Posting Permissions

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