First of all this is very similiar to: Workaround for file input label click (Firefox)
but the provided solution is not working in jQuery 1.9+
The $.browser variable dosn't exist anymore because now we have to do feature detection.
I would very much like to detect the feature that I need but there seems to be no such support in jQuery. Browser detection is gone, feature detection seems not able to detect what I need, is there a good solution out there? A Modernizr solution would be appreciated aswell and also plain-vanilla-js solution is accepted
Thanks for your help.