I'm trying to figure out what is the best way of detecting firefox without the use of .browser (since jquery 1.9 has it as deprecated)
Essentially I have this HTML:
<label class="uploadButton" for="test">Test</label>
<input type="file" name="test"/>
This works fine for IE and chrome but does nothing in Firefox. Pre 1.9 I had this:
if ($.browser.mozilla) {
$('.uploadButton').click(function () {
$(this).siblings("input").click();
});
}
Which worked without issues.
What would be the best way of making this work now that the .browser property is gone?
(I looked under features and found no feature that would detect something like this as well..)