J
jc
I have a tbody tag inside a table. The page was generated by
sharepoint and there is a lot of parentNode nesting.
I'm trying this javascript code
document.getElementByID('tbodytest').style.visibility = 'hidden';
and getting
Object doesn't support this property
If I set the style visibility property on the html markup directly it
works.
Is the issue that's it's not finding the tag?
I've tried finding it like this too with no luck.
getField('TBODY','tbodytest').style.visibility='hidden';
function getField(fieldType,fieldTitle) {
var docTags = document.getElementsByTagName(fieldType);
for (var i=0; i < docTags.length; i++) {
alert(docTags.title);
if (docTags.title == fieldTitle) {
return docTags
}
}
}
Thanks for any help or information.
sharepoint and there is a lot of parentNode nesting.
I'm trying this javascript code
document.getElementByID('tbodytest').style.visibility = 'hidden';
and getting
Object doesn't support this property
If I set the style visibility property on the html markup directly it
works.
Is the issue that's it's not finding the tag?
I've tried finding it like this too with no luck.
getField('TBODY','tbodytest').style.visibility='hidden';
function getField(fieldType,fieldTitle) {
var docTags = document.getElementsByTagName(fieldType);
for (var i=0; i < docTags.length; i++) {
alert(docTags.title);
if (docTags.title == fieldTitle) {
return docTags
}
}
}
Thanks for any help or information.