What are the ways to get and render an input value using jQuery?
Here is one:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
$("#txt_name").keyup(function(){
alert($(this).val());
});
})
</script>
<input type="text" id="txt_name" />
转载于:https://stackoverflow.com/questions/4088467/get-the-value-in-an-input-text-box