What are the ways to get and render an input value using jQuery?
Here is one:
Try this. It will work for sure.
var userInput = $('#txt_name').attr('value')