获得多个button,得到其中一个button的value,求指点~一个页面有多个button,通过JScript codevar y t.find
获得多个button,得到其中一个button的value,求指点~
一个页面有多个button,通过
- JScript code
var y = t.find("tr :button");- JScript code
y.get(0).val();
[解决办法]
button没有value
input type="button" 才有value
[解决办法]
y.get(0).value
或者
y.eq(0).val()
