I have a problem. I would like to pass the name of the file loaded by the input file type to another in a text box - text type, so that the file name to style somewhat attractive ... this is my code, and thx for help.

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

.val() is typical of jQuery functions in that it is a getter and a setter in one. So .val() without a parameter returns the value attribute of the selected element, and to set that attribute, you call .val(newValue).

Your call above gets the string object from the value attribute, then replaces it with a new string, and then the string disappears because you don't assign it anywhere.