That is more a phonegap / stackoverflow question: https://stackoverflow.com/questions/15747809/phonegap-javascript-longpress
Regards,
Ronald