Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // check inputs value function
- wp = []
- $("#input-download").change(function() {
- //push new value in array
- wp.push($('#input-download').val())
- // delete previous input value
- // this way delete previous element-value in array but create empty value
- delete wp[0]
- // remove empty value. ES6 feature
- wp.filter(String)
- });
Add Comment
Please, Sign In to add comment