I am currently developing a basic jQuery script that will enable the background color of the clicked element to change.
Below is the code I have so far:
<dt>
<input id="p_method_banktransfer" value="banktransfer" type="radio" name="payment[method]" title="Bank Payment" class="radio validation-passed" autocomplete="off"/>ev
<label for="p_method_banktransfer">Банков превод </label>
</dt>
I have multiple <dt>...</dt>
tags
Here is the CSS for <dt>
:
.opc-wrapper-opc .payment-block dt {
background: #3399CC;
border-radius: 2px;
margin: 0px 0px 13px;
position: relative;
}
It appears that when clicking on the label or input, I want to change the background color of the dt
element. How can I achieve this?