input field does not support \n in javascript code example Example: html input box integer only <input type="number" name="someid" />