create a jquery function which changes only a single paragraph’s styling
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
$('p button').click(function(){
$(this).parent('p').css('backgroundcolor', 'red');
})
<p>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<button>Click here</button>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</p>
<p>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<button>Click here</button>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</p>
<p>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<button>Click here</button>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</p>