title: Get Value of any Input type
body: <p>The Input types were generated dynamically.
  Im searching for an easy way to get the selected or checked values of any input type.</p>
  
  <pre><code>&lt;select name="myinput" &gt;
     &lt;option value="1"&gt;One&lt;/option&gt;
     &lt;option selected="selected" value="2"&gt;Two&lt;/option&gt;
     &lt;option value="3"&gt;Three&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;input type="text" name="myinput" value="Hey Ya!" /&gt;
  </code></pre>
  
  <p>Like:</p>
  
  <pre><code>var val = $('[name=myinput]').inputval();
  </code></pre>
  
  <p>Thx for help. Marc</p>
  
  <p>Edit: I dont know the type of Input before. It would be great if jquery has a native solution without time expensive type checking.</p>