script(type='text/javascript', src='js/jquery.min.js')
script.
function aFunction() {
alert($('input:text[name=userName]').val()); /* alert box, works fine. */
alert($('input:number[name=userNum]').val()); /* Some Error Here. Alert Box does not pop-up */
}
body
form(name='aForm', method='post', onsubmit='aFunction();')
input(type='text', name='userName', placeholder='Enter your name')
input(type='number', name='userNum', placeholder='Enter a number')
button(type='submit') submit
提示框会弹出输入的姓名,但不会弹出输入的号码提示框。那里有什么错误?