Thursday, January 2, 2020

Prefill Checkboxes and send values to backend

Hi, 
I have a multiselect drowdown. I want to display the selected values from a drop-down in a separate div as rows with multiple checkboxes to select.  I have tried this code in JSFiddle, jsfiddle.net/k7nL3s2z . Please let me know if there is any better approach. I need to pass this data(Selected dropdown value with selected checkbox for that row) to backend. Also, the next step would be if Mustard is selected then I need to prefill A,B and C checkboxes already and option to check the rest of the boxes(Will get the list of list of checkboxes to prefill from backend). How to have prefilled checkboxes?

Thanks!

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/048cfee1-495f-4657-ba2a-6a92f71e4177%40googlegroups.com.

No comments:

Post a Comment