I\'m trying to get a number from an input box, but it returns an empty string as an alert. What do I miss?
Then i guess you could do this way to avoid adding attributes.
Working example: https://jsfiddle.net/j9eb0xfm/5/