Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-30-2012, 05:58 PM   PM User | #1
ajay696
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ajay696 is an unknown quantity at this point
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................
ajay696 is offline   Reply With Quote
Old 11-30-2012, 07:52 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
innnerhtml is not an HTML attribute.

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

Code:
<helpgrid id="changestatus_help"/>
<script type="text/javascript">
document.getElementById('changestatus_help').innerHTML = 'This will change the status of the records.';
</script>
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.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:00 AM.


Advertisement
Log in to turn off these ads.