how to take the value of a field using jquery code example Example: get value of input jqueyr var str = $("#myInput"). val();