Get the value in an input text box

Bharanikumar picture Bharanikumar · Nov 3, 2010 · Viewed 2.4M times · Source

What are the ways to get and render an input value using jQuery?

Here is one:

Answer

Conrad picture Conrad · Apr 9, 2013
//Get
var bla = $('#txt_name').val();

//Set
$('#txt_name').val(bla);