V
V
vintalis2020-03-13 21:58:06
RAM
vintalis, 2020-03-13 21:58:06

How to undo property and return original property via JS?

The first is that there is input[files], after selecting a file, a counter of how many files are selected is shown.

example
5e6bd69b6a627577085100.png
The question is how to reset Selected files: n after I pressed the button (send) on the default value of Upload Files

And the second one I added an additional active class to one class
I want it to work for, for example, 10 seconds, after which the additional class was removed, like this implement
$('.button').click(function(event){
      $('.loader, .loader1').toggleClass('active');
      
  });


Here is the code https://codepen.io/pen/NWqYYmY

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lubezniy, 2019-08-07
@AD56

1.35 in this scenario may not work. It is better to look for a service manual by model; there may be compatible options.

A
alekssamos, 2020-03-14
@vintalis

First: do form.reset;
second, use: window.setTimeout

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question