There is such a structure:
<div class="first"> <input type="text" size="40" id="txt"> <input type="radio" name="test" value="1" id="rad"> <select> <option>Пункт 1</option> <option>Пункт 2</option> </select> </div> <div class="second"> ... </div>
How to write an event that would clear all the filled fields. If manually it will be -
$('#txt').val(''); $(':input','#rad').removeAttr('checked'); ...
etc.
But what if many items?
Is it possible to somehow clear by the parent class?