Directly from jquery.com is an example for you:
<script>
$("div").click(function () {
var color = $(this).css("background-color");
$("#result").html("That div is <span style="color:" + <br mode="hold" /> color + ";">" + color + "</span>.");
});
</script>
Visit the site for the entire example.