javascript - Phonegap-contact plugin. How to pick a contact number and show it in the input field? -
i have hybrid application based on phone-gap
have pick 1 contact native contact api , show number in input field.
i using following function:
pickcontact: function() { navigator.contacts.pickcontact(function(contact) { alert('the following contact has been selected:' + json.stringify(contact)); }, function(err) { alert('error: ' + err); }); }
problems:
- how show phone number in input field?
- when 1 contact has multiple numbers, how show numbers while selecting , select 1 particular number on click?
wiki
Comments
Post a Comment