I am trying to make a schedule table that would delete certain rows according to the current time.
Example;
(default table)
1st ride: 1.15
2nd ride: 1.45
3rd ride: 2.42
and let’s say it is 1.16 so it changes into this;
(desired table)
2nd ride: 1.45
3rd ride: 2.42
How can I achieve this functionality?
You can’t do that with
HTML.However, you can do this either on server side (by a server-side script, like
PHP,ASP,perl,python, or whatever else you choose), or on client side, byJavaScript:For example (here i’m using
JavascriptwithjQuerylibrary for convenience and shorter code):