<div id="lifecycleStage">
<div id="private2">
<input type="radio" name="lifecyclePrivate" value="preliminary" id="preliminary"/> <label for="preliminary">Preliminary</label>
<input type="radio" name="lifecyclePrivate" value="prelist" id="prelist"/> <label for="prelist">Prelist</label>
<input type="radio" name="lifecyclePrivate" value="retired" id="retired"/> <label for="retired">Retired</label> <br>
<input type="radio" name="lifecyclePrivate" value="internal product" id="internalProduct"/> <label for="internalProduct">Internal Product</label>
<input type="radio" name="lifecyclePrivate" value="reference nop" id="referenceNOP"/> <label for="referenceNOP">Reference NOP</label>
</div>
<div id="public">
<input type="radio" name="lifecyclePublic" value="listed" id="listed"/> <label for="listed">Listed ................</label>
<input type="radio" name="lifecyclePublic" value="approaching op" id="approachingOP"/> <label for="approachingOP">Approaching OP</label>
<input type="radio" name="lifecyclePublic" value="no longer available" id="noLongerAvailable"/><label for="noLongerAvailable">No Longer Available</label>
</div>
我想要的是将所选标签的背景更改为不同的“独特”颜色。Example when prelist is selected, it has a blue background, but when retired is selected it has a black background.
任何提示和技巧,非常感谢!