-2

I want to make the append inside tr / td. or just to make border like in the picture. + yellow text. How to do it please?

https://i.gyazo.com/562b6590756292ce40134f9bd1cb5ca6.png

http://jsfiddle.net/3Lqsx/7468/

$(".aprovadas").append("COLOR_ME");
$(".aprovadas").append("<br>");
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="aprovadas"></div>
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
cinassa
  • 63
  • 4
  • `$(".aprovadas").css({"style":"value"})` http://api.jquery.com/css/ – DBS May 31 '18 at 11:01
  • 1
    You can use jQuery's `css()` method, but this isn't a great idea as it ties the styling and JS logic together. Instead define a class in CSS and use `addClass()` instead – Rory McCrossan May 31 '18 at 11:05

1 Answers1

1

You can do it like this:

$(".aprovadas").css("border", "2px solid lightblue");
$(".aprovadas").css("display", "inline-block");
$(".aprovadas").css("color", "yellow");
Himanshu Upadhyay
  • 6,558
  • 1
  • 20
  • 33