Why doesn't this work? The label is inside the .item
parent. I don't want to put it outside of block elements as it wouldn't be valid.
So I'm trying to simulate a label click:
$(".item").click(function(){
$(this).find("label").click();
});
Edit: It's supposed to trigger the label and check a radio.
<script type="text/javascript">
$(document).ready(function () {
$(".item").click(function() {
$(this).find("label").click();
});
});
</script>
<div class="item">
<h4>Item</h4>
<ul>
<li>Description</li>
</ul>
<div class="radio-container">
<div class="radio-stack">
<input type="radio" class="styled" id="item1">
</div>
<label for="item1">$100</label>
</div>
</div>