getting value of another tag
Posted
by Hulk
on Stack Overflow
See other posts from Stack Overflow
or by Hulk
Published on 2010-03-23T14:05:12Z
Indexed on
2010/03/23
14:13 UTC
Read the original article
Hit count: 328
In the below code onclick edit how can the value of tag test be obtained in the edit function.
<script>
function edit(a)
{
}
var a= <tr class="clickable"><td id="userval" BGCOLOR="#FF6699"><label id="test">' + a + '</lable> <IMG SRC="edit.gif" onclick="javascript:edit(test.value);" > ></td></tr>
</script>
Thanks.
© Stack Overflow or respective owner