django formset

26 views
Skip to first unread message

shahab emami

unread,
Apr 28, 2017, 7:15:10 AM4/28/17
to Django users
hello
i search for my question on google and this group by i couldn't find the answer.
maybe I am not a good searcher.D

i have a formset.
there is a field for birth date in my form then as you know there are a few birth date field in my formset. I use this jquery plugin to add form dynamically:

https://github.com/elo80ka/django-dynamic-formset

every thing is good until now.  but because I have a date field in my form i want to

use this jquery plugin :

Datepicker | jQuery UI



then user can select date from this calendar .
but i don't now the id of date field in the form.
how can i select it with jquery  when i don't now the id of it?
I tried to find it with inspect element but i understood the id is different in every form. 
if you can tell me the idea to solving this problem or
introduce somewhere that i can read about this i will be thankful.


shahab emami

unread,
Apr 29, 2017, 7:55:40 PM4/29/17
to Django users
somebody had my problem before:

https://github.com/elo80ka/django-dynamic-formset/issues/108

please tell me something about this problem i cant solve if yet

vicalloy

unread,
Apr 30, 2017, 7:53:30 AM4/30/17
to django...@googlegroups.com
I think you can select the field by class. Or $('name$=-fieldname')
--
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...@googlegroups.com.
To post to this group, send email to django...@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/26a172d0-cd75-45e3-aa0c-f795dd40d754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Reply all
Reply to author
Forward
0 new messages