im trying to get the parent of this input but it just wont, i get the label at its most. what im i doing wrong?
<div class="input req">
<p>
<label>
<%= Html.TextBoxFor(model => model.Street, new { TABINDEX = 1,data_validate = "required|min[2]" })%>
</label>
</p>
<p class="msg">
</p>
</div>
JQUERY
alert($('#Street').parent('div.input').length);
EDIT: i should add this is all work in a thickbox and i get length 1 if i take parent('label')
EDIT2: missed this link that is posted How to find a parent with a known class in JQuery?
-2 minus for what?