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
入力した名前はアラート ボックスに表示されますが、入力した番号のアラート ボックスは表示されません。そこにあるエラーは何ですか?