Number from input box Javascript

后端 未结 4 699
没有蜡笔的小新
没有蜡笔的小新 2021-01-28 12:02

I\'m trying to get a number from an input box, but it returns an empty string as an alert. What do I miss?

4条回答
  •  没有蜡笔的小新
    2021-01-28 12:31

    Then i guess you could do this way to avoid adding attributes.

    
    
    

    Working example: https://jsfiddle.net/j9eb0xfm/5/

提交回复
热议问题