I have a textarea with an image of a camera that when clicked allows a user to select an image to upload.
What I want to do is be able to tell when a file is selected so I can perform some actions using jquery on the textarea such as expand it and display the photo with a space underneath for micropost text.
I’ve never done this before and not quite sure how to go about doing so. I would appreciate some ideas/solutions if possible.
Thanks
Kind regards
Once the file is selected the input for the file will be changed, so you could use the .change() method to register the change and perform actions. http://api.jquery.com/change/