javascript - Firefox Input Label and jquery 1.9 -
i'm trying figure out best way of detecting firefox without use of .browser (since jquery 1.9 has deprecated)
essentially have html:
<label class="uploadbutton" for="test">test</label> <input type="file" name="test"/>
this works fine ie , chrome nothing in firefox. pre 1.9 had this:
if ($.browser.mozilla) { $('.uploadbutton').click(function () { $(this).siblings("input").click(); }); }
which worked without issues.
what best way of making work .browser property gone?
(i looked under features , found no feature detect well..)
Comments
Post a Comment