views:

34

answers:

0

How can replace the column name, textbox and img with onclick event with innerHTML using JavaScript.

samplecode:

<tr>
<td>Member Id:</td>
<td><html:text property="memberValue" ... /></td> 
<!-- for memberValue setter&getter fun is there             in bean -->
<td>
<A onClick="popUp()">
<html:img src="/calender.jpg ... />
</A>
</td>
</tr>

calling function using JavaScript:

function replaceAboveData()
{

  // I did n't know eaxctly, how can replace the above 
  // Member Id, popUP() to anotherPopUp()  and another img
  // with innerHTML using JavaScript
}

Please give me any suggestions.........urgent.