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: 310

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>&nbsp;&nbsp;&nbsp; <IMG SRC="edit.gif" onclick="javascript:edit(test.value);" > ></td></tr>
</script>

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery