kevvo
05-20-2012, 04:10 PM
Hi. I have the following line in my HTML file <table class="bz_buglist" cellspacing="0" cellpadding="4" width="100%">
And I need to use javascript to change this line to <table id="main_table" class="bz_buglist" cellspacing="0" cellpadding="4" width="100%"> . I just need to add the ID part.
How can I do this? Is there a method of replacing the line, or a way to "add attribute"? thanks!
kev.
And I need to use javascript to change this line to <table id="main_table" class="bz_buglist" cellspacing="0" cellpadding="4" width="100%"> . I just need to add the ID part.
How can I do this? Is there a method of replacing the line, or a way to "add attribute"? thanks!
kev.