There is:
<form id="formtabs" name="formtabs"> <div><input type="radio" name="nametab" id="nametab" value="lastmaterials" /> <h3>Материалы</h3></div> <div><input type="radio" name="nametab" id="nametab" value="lastphotos" /> <h3>Фотографии</h3></div> <div><input type="radio" name="nametab" id="nametab" value="lastwork" /> <h3>Портфолио</h3></div> </form>
I want to click on the #formtabs div to change the checked value in the input: radio, which is inside it.
There is such an option, but it does not work:
$('#formtabs div').click(function(){ $('this').has('input').val('checked','checked'); });