Have a 2 columned table, where each column consists of another table with some data, what I am trying to do is to hide the entire row if both of the columns are empty.. can anybody share some inputs on it..
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you had already was close to working, but you had an error in your
ifstatement:Notice the missing
$in the second condition. It also would fail if there was white space in the.firstTaband.secondTabelements. Personally, I would write the code slightly differently, using thefiltermethod, and.trimto remove any white space at the start or end of the content:Here’s a live example of the above code.