I have custom switches that I borrowed from this site: http://www.inserthtml.com/2012/06/custom-form-radio-checkbox/
Unfortunately, I use a useful plugin that I cannot easily modify, which fills my DOM with nested input inside the label in such a way that ...
<label> <input class="regular-radio">
I would like to use the .regular-radio + label selector to select a label. However, it only works with:
<input class="regular-radio"> <label>
I demonstrated my example here: http://jsfiddle.net/BR3MB/
How can I change this CSS to work with the parent label and not the neighboring one? In this case, it would be very difficult for me to edit the DOM, since it already relies a lot on this structure.
yekta source share