1.用jquery

代码片段
1 行
$("input[name='btnAdd']").attr("value")   

获取value属性值,其它属性换attr的参数就OK

例:

2.通过点来获取: