instant image view when uploading

this tutorials about instant image change we are going to implement the image instant view when uploading. this is done by jquery method we used the FileReader() method to implement this. see the below code html code when page is loading first time profile_image is not displaying.

Final Output
instant image change

HTML code..

below is the jquery code when click on profile_image id to call another function and change the image we can used the attr jquery method.

JQuery code..