<html lang="en">
<head>
<title>jQuery :prop() Method Set Single Property and Value</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('.mybtnset').click(function(){
$( ".myparaset" ).prop("style","background:yellow");
});
});
</script>
</head>
<body>
<h2>jQuery :prop() Method Set Single Property and Value</h2>
<button type="button" class="mybtnset">Click to Set Property</button>
<p class="myparaset">This is my paragraph.</p>
</body>
</html>