alert($('.input-large[name="name"]:parent:parent').html());
My html is :
<div class="control-group">
<label for="name" class="control-label">Clinic Name</label>
<div class="controls">
<input type="text" name="name" id="name" class="input-large" value="">
</div>
</div>
I’m getting null in the alert. How to find the parent of the parent of the input element?
Try