form 表单 butto 默认值 和 获取 input name 值

128 阅读1分钟

form 表单的 button 的默认值是 submit

获取 input name属性的值

jQuery方式:

$("input[name='mobile']").val()