<table id="table1">
<tr> <td><input type="text" value="2" /></td><td><input type="text" value="2" /></td><td ><input type="text" class="wcp" onblur="check(this)" /></td></tr>
<tr><td><input type="text" value="3" /></td><td><input type="text" value="4" /></td><td ><input type="text" class="wcp" onblur="check(this)" /></td></tr>
</table><script>
function check(a)
{
}
</script>
该怎么写,可以加属性 class,不能加属性id
很急
<tr> <td><input type="text" value="2" /></td><td><input type="text" value="2" /></td><td ><input type="text" class="wcp" onblur="check(this)" /></td></tr>
<tr><td><input type="text" value="3" /></td><td><input type="text" value="4" /></td><td ><input type="text" class="wcp" onblur="check(this)" /></td></tr>
</table><script>
function check(a)
{
}
</script>
该怎么写,可以加属性 class,不能加属性id
很急
var oInputs = o.parentNode.parentNode.getElementsByTagName('input');
o.value = parseInt(oInputs[0].value) * parseInt(oInputs[1].value);
}