I am trying to pick the value of the set time value, while it is picking up the correct value in the browser . But when I am using it in an phonegap android app it is not picking the value it is showing as undefined. Following is the test code where time_reminder is the id of the timepicker:
the script
function set_reminder(){
var time_re = $("#time_reminder").attr('value');
//console.log("value of the reminder "+time_re);
// alert("time is "+$("#time_reminder").attr('value'));
alert(time_re);}
I am trying to pick the value of the set time value, while it is picking up the correct value in the browser . But when I am using it in an phonegap android app it is not picking the value it is showing as undefined. Following is the test code where time_reminder is the id of the timepicker: