How to get full path of file while selecting file using
You cannot do so - the browser will not allow this because of security concerns.
When a file is selected by using the input type=file object, the value of the value property depends on the value of the "Include local directory path when uploading files to a server" security setting for the security zone used to display the Web page containing the input object.
The fully qualified filename of the selected file is returned only when this setting is enabled. When the setting is disabled, Internet Explorer 8 replaces the local drive and directory path with the string C:\fakepath\ in order to prevent inappropriate information disclosure.
And other
You missed );
this at the end of the change event function.
Also do not create function for change event instead just use it as below,