Let's say I have a div that's 500 x 500px. Inside that, I have an <input type="file" />
, that's also 500 x 500, and with an opacity of 0.
Inside of my div, I put another text or text area input over top the invisible one. Now, whenever I click inside the parent top input, a file chooser appears (belonging to the invisible file input underneath).
Is there a way of capturing the click event so that it stops at the top input. I don't want to see a file choose appear when dealing with my top, text input.