Home > DeveloperSection > Forums > How to apply Css in jquery?
Somesh

Total Post:21

Points:147
Posted on    April-28-2011 1:13 AM

 JQuery JQuery 
Ratings:


 1 Reply(s)
 1748  View(s)
Rate this:
Hello
this is the my code
<body>
<div>india</div>
<div>nepal</div>
<div>US</div>
</body>

my problem , how apply the border for all div by jquery?
please give the syntax  of its.


Amit Singh

Total Post:103

Points:721
Posted on    April-28-2011 1:30 AM

Hi somesh,
we apply the css for all div using JQuery.

$("div").css("border","1px solid black");

check this syntax.

Don't want to miss updates? Please click the below button!

Follow MindStick