Friends, I need to add text box into alert view in phonegap/ cordova application.
I use the following link tutorial for creating two buttons in alert view. http://docs.phonegap.com/en/3.0.0/cordova_notification_notification.md.html
but i can't add the text-box into that. Actually I have to send email id to the server when user forgot the password. Is there another way to do that thing... plz share...
Check this code
function onPrompt(results) {
alert("You selected button number " + results.buttonIndex + " and entered " + results.input1);
}
navigator.notification.prompt(
'Please enter your name', // message
onPrompt, // callback to invoke
'Registration', // title
['Ok','Exit'], // buttonLabels
'Jane Doe' // defaultText
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.