HOW TO APPLY CSS IN JQUERY?

Somesh

Total Post:21

Points:147
Posted by  Somesh
JQuery 
 2005  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. Amit Singh

    Post:103

    Points:721
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!