title: How to select textbox and textarea containing portion of id simultaneously
body: <p>How can I select textbox and textarea containing portion of an id? For instance i would like to select both textbox and textarea only containing id 'div1'.</p>
  
  <p>I tried below lines</p>
  
  <pre><code>$("input[id*='div1'][type='text']") 
  </code></pre>
  
  <p>this gives me only textboxes.</p>
  
  <pre><code>$("input[id*='div1'][type='text'],textarea")
  </code></pre>
  
  <p>this gives me all textboxes and textareas(not containing div1 also)</p>
  
  <pre><code> $("input[id*='div1'][type='text','textarea'")
  </code></pre>
  
  <p>For this line an error is thrown stating invalid syntax.</p>
  
  <p>Can anyone please help me??
  Thanks in advance. </p>