java - not display the button in jSP -


I want to hide the table row based on a condition and show my strict line ID 2.

This is my part / line to show / hide

  & lt;% if (group.equals ("Y")) {%> & Lt; Input & lt;% try {if (dTO.getStat () == 0) {%> Style = "display: none;" & Lt;%}} Catches (Exception Pre) {}% & gt; Type = "button" value = id = "btnview" name = "btnview" onclick = "statusChange ('view', 'add_userFrm'); hide_menu ('showhide2'); loadDataForGivenDiv ('add_userFrm');" Class = "button" style = "width: 100px" /> & Lt;%} Other {%> & Lt; Try input & lt;% {if (dTO.getStat () == 0) {%> Style = "display: none;" & Lt;%}} Catches (Exception Pre) {}% & gt; Type '' button 'value' id = "btnview" name = "btnview" onclick = "statusChange ('view', 'add_userFrm'); show_menu ('showhide2'); loadDataForGivenDiv ('add_userFrm');" Class = "button" style = "width: 100px" /> & Lt;%}% & gt;  

But in my application the "View" button is not shown. I can not solve it

The function used to hide this row

  function hide_menu (id) {document.getElementById (id) .style.display = "none"; Document.getElementById (ID). Style.width = "0"; }  

I think the problem is in my code in which the button is "view"

If you set the display to anyone in both, can it be?


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -