The syntax that I don't understand is this:
$(#profilePhotoFileUpload)[0]
I have been seeing this syntax pretty frequently and I've ignored it for a while because I never had to use it. But now, in order to understand the code from this post How do I upload an image using the Parse.com javascriptSDK?, I cannot ignore it any longer.
I know that [0]
this syntax is used to refer to an array usually. But it seems a little weird that a reference to an id
would generate an array of some sort.