---
title: "How to apply Css in jquery?"  
description: "How to apply Css in jquery?"  
author: "Somesh"  
published: 2011-04-28  
updated: 2011-04-28  
canonical: https://www.mindstick.com/forum/229/how-to-apply-css-in-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# How to apply Css in jquery?

Hello\
this is the my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)\
<[body](https://yourviews.mindstick.com/story/2120/rare-species-having-electricity-in-their-body)>\
<div>[india](https://www.mindstick.com/articles/12769/why-consider-international-business-mba-in-india)</div>\
<div>nepal</div>\
<div>US</div>\
</body>\
\
my [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) , how [apply](https://www.mindstick.com/articles/13148/discover-to-apply-make-up-like-a-professional-supermodel) the border for all div by jquery?\
please give the syntax of its.

## Replies

### Reply by Amit Singh

Hi somesh,\
we apply the css for all div using JQuery.\
\
$("div").css("border","1px solid black");\
\
check this syntax.


---

Original Source: https://www.mindstick.com/forum/229/how-to-apply-css-in-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
