how to feed a input value into variable in jquery code example Example: get value of input jqueyr var str = $("#myInput"). val();