Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>Clothes</h2>
- <table class="table">
- <thead>
- <tr>
- <th>price</th>
- <th> date </th>
- <th>Delete</th>
- </tr>
- </thead>
- <tbody>
- <% for(var i = 0; i < result.length; i++){%>
- <% if(result[i].type == "price"){%>
- <tr>
- <td><%= result[i].price %></td>
- <td><%= result[i].date %></td>
- <td>
- <form action="/delete-price" method="POST">
- <input type="hidden" name="id" value="<%= result[i]._id %>">
- <input type="submit" name="submit" value="Delete">
- </form>
- </td>
- </tr>
- <%}%>
- <%}%>
- </tbody>
- </table>
- Ex: If the user enters budget of 200$ , I should go to all the rows in
- "Clothes" , check the prices, if the prices is greater than the budget, this
- row should be flagged .
Add Comment
Please, Sign In to add comment