<form> <input type="text" txt="姓名" /><br /> <input type="number" value="" required /><br /> <input type="button" id="hidBtn" value="hide" /> <input type="submit" id="btn" value="ok" /> </form>
$("#hidBtn").click(function(){ $("input[type=number]").hide(); });