Hi All,

This is my first post, sorry if this question has been asked before as 
well. What i am trying to do is in the django admin, when using a 
datetimefield we get a datepicker and timepicker from DateTimeShortcuts.js 
<https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js>.
 
I want to fetch the selected date and time using jquery or javascript and 
use it for some js calculation. I wrote the js code which fetches the value 
onchange but it only picks the values if they were updated directly on the 
model and not from the date or time shortcuts.

$( document ).ready(function() {
    console.log( "ready!" );
    $('#id_start_date_0').bind('change', function() {
      alert($(this).val());
    });});

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ae3dfc11-1d83-4d71-adbc-3eea3e3bd9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to