I have stuck on Mac browsers where I can not click file tag via jQuery .
Note : All this things are working fine on all OS browser.
I have one select box that has some values :
<input id="uploadedFile" style="position:absolute;top: -200px;" type="file">
<select id="user_avatar" original-title="Avatar">
<option value="4" selected="selected">Female avatar</option>
<option value="3">Male avatar</option>
<option value="2">Upload your pic</option>
</select>
And using below Javascript to open file tag
$("#user_avatar").change(function() {
if ( $(this).val() == "2") {
$('#uploadedFile').click();
}
});
I have debug lot on stackoverflow and other source. like :
But none was helping me to get out of this problem.
Guys If you have any idea to solve this issue the please please let me know.