it's a bit verbose because, yes, it's the beast SharePoint I must use a my platform.
here is the code I am trying hopelessly to use to get list of document names for only those 'td' who do not have style="display: none"
var newArr3 = []
var newArr4 = []
var xtext3 = $("A");
var xParent = $("xtext3").parent().parent().parent()
$(xtext3).each(function (index) {
//WHY DOESN'T THIS CONDITION WORK
if ($(this).parent().parent().parent().attr('style') != 'DISPLAY: none') {
newArr3.push($(this).text());
newArr4.push($(this).parent().parent().parent().attr('style'));
}
});
alert(newArr3)
alert(newArr4)
<table>
<TBODY>
<TR class="ms-alternating ms-itmhover s4-itm-selected" iid="0,15882,0" setEdgeBorder="true">
<TD class="ms-vb-itmcbx ms-vb-firstCell">
<INPUT class=s4-itm-cbx title="Abstract " value="" type=checkbox _setup="true">
</TD>
<TD class=ms-vb-icon>
<IMG title=Abstract.xml border=0 alt=Abstract.xml src="/_layouts/images/icxddoc.gif">
</TD>
<TD class=ms-vb-title onmouseover=OnChildItem(this) height="100%">
<DIV id=15882 class="ms-vb itx" onmouseover=OnItem(this) EventType="" Perm="0x7fffffffffffffff" Field="LinkFilename" CTXName="ctx0">
<A onfocus=OnLink(this) onmousedown="return VerifyHref(this,event,'1','SharePoint.OpenXMLDocuments.3','1
https://vaww.portal2.va.gov/sites/localresearch/Boston/_layouts/FormServer.aspx?XmlLocation=/sites/localresearch/Boston/ProjectManagement/vhabhsrosed-10-07-2014_03-57_AM/Abstract.xml')" onclick="return DispEx(this,event,'TRUE','FALSE','FALSE','','1','SharePoint.OpenXMLDocuments.3','InfoPath.Document.3','1
https://vaww.portal2.va.gov/sites/localresearch/Boston/_layouts/FormServer.aspx?XmlLocation=/sites/localresearch/Boston/ProjectManagement/vhabhsrosed-10-07-2014_03-57_AM/Abstract.xml','','1','0','0','0x7fffffffffffffff','','')" href="/sites/localresearch/Boston/ProjectManagement/vhabhsrosed-10-07-2014_03-57_AM/Abstract.xml">Abstract</A><IMG class=ms-newgif title=New alt=New src="/_layouts/1033/images/new.gif"></DIV>
<DIV style="LINE-HEIGHT: 22px; MARGIN: 0px; HEIGHT: 22px; TOP: 622px; LEFT: 983px" class=s4-ctx onmouseover="OnChildItem(this.parentNode); return false;" shown="false"><SPAN> </SPAN><A onfocus="OnChildItem(this.parentNode.parentNode); return false;" title="Open Menu" onclick="PopMenuFromChevron(event); return false;" href="javascript:;"><IMG style="VISIBILITY: hidden" alt="Open Menu" src="/_layouts/images/ecbarw.png" width=7 height=4></A><SPAN> </SPAN></DIV></TD>
<TD class=ms-vb2></TD>
<TD class="ms-vb2 ms-vb-lastCell">Yes</TD></TR>
<TR style="DISPLAY: none" class=ms-itmhover iid="0,15883,0" setEdgeBorder="true">
<TD class="ms-vb-itmcbx ms-vb-firstCell"><INPUT class=s4-itm-cbx title="Application to Use Radioactive Material " value="" type=checkbox _setup="true"></TD>
<TD class=ms-vb-icon><IMG title="Application to Use Radioactive Material.xml" border=0 alt="Application to Use Radioactive Material.xml" src="/_layouts/images/icxddoc.gif"></TD>
<TD class=ms-vb-title onmouseover=OnChildItem(this) height="100%">
<DIV id=15883 class="ms-vb itx" onmouseover=OnItem(this) EventType="" Perm="0x7fffffffffffffff"