• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to hide whole row generated by Ajax if Total equals to 0  RSS feed

 
Recaip Sanli
Ranch Hand
Posts: 72
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below code queries the Database for PL records information and prints it on the page. I am struggling with majorly two things:
1) Printing entered start and end dates and also Company name to the page above the table. Above this "<table class="view-table" id="table">".
2) If total field is equal to 0, I want its whole row to be hidden. I cannot figure out a way to hide it.

I included screenshot of how the application works.


total.php



pl.js




pl.php
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!