I have two input fields fields with the same class, one display:none. I want to query the value of the input field that is NOT display:none.
EDIT (with example)
<div id="Parent1" style="display:none">
  <p>
    <input type="text" class="title" value="">
  </p>
</div>
<div id="Parent2">
  <p>
    <input type="text" class="title" value="this is the one I want">
  </p>
</div>
js
$('.title').val();  
Returns blank since the first title class is empty. I want to ignore the first title who's parent is display:none.
 
     
     
     
    