I need to retrieve the span value as per checkbox checked using Jquery. I am explaining my code below.
<div class="col-md-3 tourpricecolumn">
<h6>Select Vehicle</h6>
<label class="radio">
<input type="radio" checked="checked" name="sVehicle">
<span class="checkround"></span>Car
<span class="badge badge-pill badge-primary">435</span>
</label>
<div class="clear"></div>
<label class="radio">
<input type="radio" name="sVehicle">
<span class="checkround"></span>Bus
<span class="badge badge-pill badge-primary">356</span>
</label>
<div class="clear"></div>
<label class="radio">
<input type="radio" name="sVehicle">
<span class="checkround"></span>Tempo Traveller
<span class="badge badge-pill badge-primary">567</span>
</label>
<input type="hidden" value="" name="vehicleprice" />
</div>
Here my requirement is when checkbox will be checked then its corresponding span value will be etched and add to that hidden input textbox
.