86
rated 0 times
[
87]
[
1]
/ answers: 1 / hits: 51275
/ 13 Years ago, tue, june 21, 2011, 12:00:00
When I click on the show details link it should change to hide details. I tried the following code but it's not working:
out.print(<a href=javascript:parent.showHideDetails('+id+',this);>show details</a>);
function showHideDetails(id,obj) {
try
{
alert(obj.innerText);
obj.innerText = 'hide details';
}
catch (err)
{
alert(err);
}
}
More From » javascript