As you can see in the picture, I am using jquery to add a new li item everytime someone is put into the input box.
However,
I also want it to add a 2 hour countdown timer to the left of the string. I have tried multiple times but I can not get a new timer to produce.
For instance, If I say John.. Then john will have a 2 hour timer. If I wait 10 minutes after and say "pete". Now john will have a 1:50m timer and pete will have 2 hours and so on.
This is what I have so far.
<div class="container">
<form id="myform" action="whatever.php">
<input id="in" type="text" placeholder="Serial"/>
<input type="submit" />
</form>
<div class="results">
<ul class="list">
</ul>
</div>
</div>
<script>
(function($){
$('#myform').submit(function(e){
var val = $(this).find('#in').val();
$('ul.list').append('<li>' + val + '</li>');
e.preventDefault();
});
})(jQuery);
</script>