How get the value of a input text using prev() and val() method?

How get the value of a input text using prev() and val() method?

Hi everyone

Im trying to get a value of a input type text. im used the val() method.
I apply this method with a selector based in the location of the input text, using the prev() method.
In the var $curr i have the selector of the input text. In the next line i put the $curr var in red. This confirm that its the correct selector of the input text.
In the next line i trying to get the value but with $curr doesnt works. When i change this line for $('#TextFromInput').text($( ".test" ).val()); (using the class of the input text) works perfectly.


How can i get the values using the prev() ??
I hope somebody can help me

Thanks