.click() does not work in phonegap

I have this function:

$scope.launchSelectImg = function() {
   document.getElementById("fileElem").click();
};

The .click() does not fire off in PhoneGap on my android device. Works just fine in the browser. Any suggestions?

Answers


May be this will help..

$("#fileElem").live("click", function() 
{
   alert("success");
});

Need Your Help