Saltar navegación

[Resuelto] Can't grad datepicker selection with jQuery

This support ticket is created hace 6 años, 6 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Valeriia hace 6 años, 6 meses.

Asistido por: Shane.

Autor
Mensajes
#924689

Hi,

I'm trying to grab the selected in datepicker date. All the solutions I found in the internet look more or less the same and do not work when I try to implement them. Here is what I'm trying:

	jQuery(document).ready(function(){
	    var $ = jQuery;
	    $('.js-wpt-date').datepicker({
	        onSelect: function (dateText) {
	           	console.log(dateText);
	        }
	    });
	});

Could you please advise?

Thanks

#924754

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Valeria,

Would you mind providing me with a link to the page that has this datepicker so that I can have a look .

Thanks,
Shane

#924799

Hi Shane,

Thanks for the response. Could you enable the private message please? The site is under development and I need to provide you with login and password to see it.

Thanks.

#924834

I made it work, no more help needed, thanks.