<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<p id="p-id"></p>
<script>
// jQuery
function set_p()
{
$("#p-id").attr("style", "color:green").html("jQuery")
}
$(document).ready(set_p);
/*
run:
"jQuery" green color text in "p-id"
*/
</script>
</body>
</html>