子要素にクラスが必要なスパンタグが含まれていない親要素を非表示にしようとしています。例えば:
<html>
<body>
<div class="optionfield" id="fieldAdTitle">
<label class="optionLabel" for="Title">
<span class="required">*</span>
Title
<label class="optionLabel" for="Title">
<input type="text" class="" value="" name="Title" id="Title">
</div>
<div class="optionfield" id="fieldAdTitle">
<label class="optionLabel" for="Title">
Title
</label>
<input type="text" class="" value="" name="Title" id="Title">
</div>
<div class="optionfield" id="fieldAdTitle">
<label class="optionLabel" for="Title">
Title
</label>
<input type="text" class="" value="" name="Title" id="Title">
</div>
</body>
</html>