<script> $('input[type=radio]').click(function(event){ $("label").css({ 'background-color' : 'white' }) }); </script> There is such a simple script, which when selecting an input, highlights the inscription next to it. But this script highlights all the labels on the page. How to make so that only that label which is pressed by the user was highlighted?
HTML has this structure.
<form> <label> <input type="radio" />_ Sample text_</label> </form>