get value of input jqueyr

JavaScript
var str = $("#myInput"). val();
Source

Also in JavaScript: