android


phonegap android datepicker plugin not working on second field


$('.nativedatepicker').focus(function(event) {
var currentField = $(this);
var myNewDate = Date.parse(currentField.val()) || new Date();
if(typeof myNewDate === "number") {
myNewDate = new Date (myNewDate);
}
// Same handling for iPhone and Android
window.plugins.datePicker.show({
date : myNewDate,
mode : 'date', // date or time or blank for both
allowOldDates : true
}, function(returnDate) {
var newDate = new Date(returnDate);
currentField.val(newDate.toString("dd/MMM/yyyy"));
// This fixes the problem you mention at the bottom of this script with it not working a second/third time around, because it is in focus.
currentField.blur();
});
});
I have two inputs
I have inserted this could but the datepicker then stops working after selecting second field
Please help

Related Links

Glide How to load a GIF from external storage using glide
Logout from Facebook after sharing [Xamarin.Android]
setBitmapImage has no effect - Android and JNI
Record local camera feed in AppRTC audio/video call android with out using MediaProjection api
How to check whether the image is Portrait or Landscape in Android?
Android - Facebook integration - get news feed / all statuses / facebook startpage
I starting my project using Fused Location provder, but I got an error message while fixing gradle file
Android Http proxy using ProxyDroid not working on some applications. Rooted device
How to navigate through activities with CoordinatorLayout
Disable time information on okhttp3 addNetworkInterceptor
Javadoc generation error package does not exist multi module project
Unexpected crash while drawing view in android
Using a single view for different data in android
Is there a qualifier exclusively for Android TV
Using Parameters and wildcards on SQL server
WaitForElement not working for confirmation dialog

Categories

HOME
android
url-redirection
mstest
solver
rendering
replace
static-site
xbee
pearson-correlation
title
rcloud
appcelerator-studio
3nf
package-managers
scsi
feathersjs
video-editing
symfony-console
sigma.js
bourbon
solrcloud
asp.net-core-webapi
sar
poedit
backpack-for-laravel
dataflow-diagram
aggregation
displaytag
comparator
surveymonkey
android-sharedpreferences
bringtofront
contacts
sendbird
indy10
reactivekit
loading
uiimage
robomongo
datamaps
arq
boxing
opengl-4
css-transforms
cpu-cache
google-photos
bootstrap-tags-input
choice
stax
expectations
beanstalk
findfirst
avisynth
wiredep
oracle-spatial
roadkill-wiki
microsoft-reporting
video-player
fuelcms
snoop
cakephp-2.7
code-documentation
document-repository
delayed-execution
cocos3d
machine-instruction
paw
universal-image-loader
nsmenu
dct
memset
conditionaltagsupport
ecslidingviewcontroller
mysql-error-1044
cocoalibspotify-2.0
neos-server
mvc-editor-templates
asdf
cmmi
merb
server-administration
android-sdk-2.3
dopostback
boost-msm
appjs
predicatebuilder
cross-database
screen-size
xcelsius
dataform
sifr
murmurhash
alsb
image-capture

Resources

Encrypt Message