Remove / Delete / Hide with Conditional

Remove / Delete / Hide with Conditional

seagate25seagate25 Posts: 1Questions: 1Answers: 0
edited November 2016 in Free community support

I'm creating a PIDS (Passenger Information Display System), i want to remove/delete/hide row when the depart schedule is same or more with now time. I've been try with remove, but doesn't work. What is the solutions ?

`complete: function(data){
var date = new Date();
var h = date.getHours();
var m = date.getMinutes();
var s = date.getSeconds();
var now = date.getTime();
//console.log(now);
var time = h + ':' + m + ':' + s;
var datas = data.responseJSON.data;
for(i=0;i<datas.length;i++){
var jsonNow = date.getTime(datas[i].stopdeparture);

                  if(jsonNow >= now){
                    // remove tr


                  } else {
                    // not remove tr
                  }
                }
            }`
This discussion has been closed.