- avidal
- May 19, 2006
-
bawl-some
|
Packet Loss posted:
Ah.. so my question
I need to remove all of the TR tags in a table. The table has an ID, but evidently there's an underscore in the ID which I believe is invalid and so my code always fails.
code:<script language="javascript" type="text/javascript">
var obj=document.getElementById('bswProductsDisplay_tblProducts').innerHTML;
var re= new RegExp('<'+tr+'[^><]*>|<.'+tr+'[^><]*>','g')
document.getElementById('bswProductsDisplay_tblProducts').innerHTML=obj.value.replace(re,'');
</script>
Is basically what I'm doing, but I'm stupid with javascript so this may not even work anyways.
You need to remove just the tags themselves, or the entire element?
|
#
¿
Feb 4, 2009 21:33
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 4, 2024 14:33
|
|