Tuesday, 6 August 2013

Get Value of any Input type

Get Value of any Input type

The Input types were generated dynamically. Im searching for an easy way
to get the selected or checked values of any input type.
<select name="myinput" >
<option value="1">One</option>
<option selected="selected" value="2">Two</option>
<option value="3">Three</option>
</select>
<input type="text" name="myinput" value="Hey Ya!" />
Like:
var val = $('[name=myinput]').inputval();
Thx for help. Marc

No comments:

Post a Comment