How to apply Css in jquery?

Total Post:21

Points:147

JQuery 
 2451  View(s)
Ratings:
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.
  1. Re: How to apply Css in jquery?

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

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

    check this syntax.

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.