jsf - Hiding a Panel Grid row with javascript -
since i'm not able define known count variable row id inside <h:panelgrid>
table, there way hide <tr>
via javascript?
i need document.getelementbyid("rowid")
on onclick
button attribute, there's 1 button each row. , each button has know row id.
ofcourse if want hide tr just
html:
<button onclick="hiderow(this)">
js:
function hiderow(element){ element.parentnode.parentnode.style.display='none';}
Comments
Post a Comment