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