How to Image Button set visible true false [Resolved]

Posted by Kirubakaranb.Tech under JavaScript on 12/5/2013 | Points: 10 | Views : 6509 | Status : [Member] | Replies : 6
I have a Imagebutton by default visible="false";
Ex:
<asp:Imagebutton ID="tstImage" runat=Server visible=False>

in javascript to visible true that image button how it is posible

i try this coding but not work
javascript:
document.GetElementById('ImgTest').visible='true';




Responses

Posted by: vishalneeraj-24503 on: 12/5/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Also you can write:-
document.GetElementById('ImgTest').style.visibility='hidden';

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/5/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Please write as

document.GetElementById('ImgTest').style.display = 'none';

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/5/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
document.getElementById('<%=ImgTest.ClientID'%>).style.display = 'none';

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/5/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi,did you find your solution?

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kirubakaranb.Tech on: 12/5/2013 [Member] Starter | Points: 25

Up
0
Down
Thx I got Answer

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 12/5/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi, you can also use:-
document.GetElementById('ImgTest').style.display = 'none';

Please check this also.

Kirubakaranb.Tech, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response