Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am using MVC2 Architecture.I have a image in UI..I want to hide that image from controller method..

I tried this
JavaScript
return JavaScript(" $('#imgBigcommerce').hide();"); 

but it is not working please any one say the solution

Regards
Prabhakaran
Posted
Updated 3-Feb-12 10:47am
v2

1 solution

I m not conform but give a try to this

JavaScript
$('#imgBigcommerce').style.display = 'none'
 
Share this answer
 
Comments
[no name] 3-Feb-12 5:00am    
public ActionResult Fetch()
{
return JavaScript("javascript:$('#image').style.display = 'none'");

}
i am using this method in controller to hide the image but the image not hide its right or wrong ....?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900