how to do a for each jquery of text input values code example Example: get value of input jqueyr var str = $("#myInput"). val();