mercredi 25 juin 2014

Targeting a span that is wrapped around a radio input


Vote count:

0




My problem is fairly simple. I'm using a template to do styling. The way the template handles form inputs is it wraps them in span tags.


Example:



<label class="radio">
<div class="radio" id="uniformed-undefined">
<span class="checked">
<input type="radio" name="grow" value="slash">
</span>
</div>


How can I target that <span class="checked"> based on the input name "grow" and the value "slash" ?


I've looked into .before() but I'm not sure that's the correct answer.



asked 38 secs ago

ChrisG

291





Aucun commentaire:

Enregistrer un commentaire