How to get textbox value in jquery
Many time we require the textbox value for calculations or other need. Get textbox value in jquery is very simple just read the following example.
by bilbobaggins
HTML
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<input type="text" id="txtval" />
<input type="text" id="txtval" />
<input type="password" id="txtval" />
<input type="radio" id="txtval" />
<input type="button" value="Get textbox Value" id="btnval" />
JavaScript
$(document).ready(function(){
$('#btnval').click(function(){
$val=$('#txtval').val();
alert($val);
});
});