For the life of me I can't figure out how to specify this in an if statement so i can hide the row.
<table>
<TR><TD width=190 class=ms-formlabel noWrap vAlign=top><NOBR>Request Expedited</NOBR></TD>
<TD width=400 class=ms-formbody id=n17WPQ6 vAlign=top>Yes </TD></TR>
<TR><TD width=190 class=ms-formlabel noWrap vAlign=top><NOBR>No Request Expedited</NOBR></TD>
<TD width=400 class=ms-formbody id=n17WPQ6 vAlign=top>No </TD></TR>
<TR><TD width=190 class=ms-formlabel noWrap vAlign=top><NOBR>NoRequest Expedited</NOBR></TD>
<TD width=400 class=ms-formbody id=n17WPQ6 vAlign=top>No</TD></TR>
</table>
$(document).ready(function () {
$("#startformbody").click(function(){
fxmsmsformbody()
alert("clicked");
});//END CLICK
});//END READY
function fxmsmsformbody(){
var xmsmsformbody = $(".ms-formbody");
xmsmsformbody.each(function(){
console.log("this_text = " + $(this).text())
if($(this).text() == "No ") { //No  NOPE, IT TRIMS ???????
console.log("in $(this).text = " + $(this).text());
console.log("in 'No ' so HIDE this item = " + $(this).parent().text());
$(this).parent().hide();
}
else{
//console.log("in NOT ELSE'Yes '");
}
if($(this).text() == "No ") { //No  NOPE, IT TRIMS ???????
console.log("in $(this).text = " + $(this).text());
console.log("in 'No ' so HIDE this item = " + $(this).parent().text());
$(this).parent().hide();
}
var xtrim = $(this).text();
xtrim.trim();
console.log(xtrim);
if(xtrim == "No") { //No  NOPE, IT TRIMS ???????
console.log("in $(this).text = " + $(this).text());
console.log("in 'No' so HIDE this item = " + $(this).parent().text());
$(this).parent().hide();
}
})//END EACH
}//end func
Helping me to find a solution to this mess would be kindly putting me out of jQ challenged misery.