.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Refernce of Css through javascript

Posted By: Vikramraj     Posted Date: June 10, 2010    Points:2   Category :ASP.Net
I Have 2 Css & want to apply that css using javascript in asp.net pags is it possible? How can this problem be solved.

Responses
Author: Venkat             
Posted Date: June 15, 2010     Points: 5   

Hi,

You can use Jquery to set or remove class. But if you would like to add/remove style using javscript you can do so

for eg:

var obj= document.getElementById(yourObject);
obj.style.visibility = "visible";

//or

obj.style.visibility = "none";


Mark As Answer if this solve your problem
Warm Regards,
Venkat


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend