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:

  1. how show phone number in input field?
  2. when 1 contact has multiple numbers, how show numbers while selecting , select 1 particular number on click?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -