(1)Find by class and set Css attribute.
$(".overlay").css({'display':'block','background-color':'red'});
(2)Find by class and Remove class.
$(".overlay").removeClass("overlay");
similar methods are addClass, toggleClass
using jQuery we can make javascript programming easier.
Thanks.
No comments:
Post a Comment
Comments posted on ASP.Net Ajax Tutorials Blog are moderated and will be approved only if they are on-topic and not abusive. Please email me or my team for tech-support or blogging related questions. Avoid including website URLs in your comments - Thanks Author