title: How to iterate through only the text box elements in the form using jquery
body: <p>I have a form  which contains 4 text fields  when the button is clicked 
  we should see that atleast one of the textfield should contain the value and the form should get submitted 
  and the form also contains the Button which of input type too .I want only textbox field  values</p>
  
  <pre><code>$("#mybutton").click(function(){
  
  $(":input").each(function(){
    if($(this).value!=''){
      $("#myform").submit();
  
   }
  
  });
  });
  </code></pre>