JQuery in CodeBehind

JQuery in CodeBehind

I need to change the css class background-color in codebehind. I know how to do it in aspx. But how to do that in cs?
 $("#header").css('background-color', 'red');
 
Thank You