i trying create first flask based website. have created list has 2 fields text , status. displaying in table text label , status checkbox.
what want each checkbox, want capture change status , update @ server.
i thinking create each text:status in form. unable grasp how go back, field bind , how make sure getting correct checkbox id.
this doing right now
{% checklist_entry in dashboard_items %} <label class="checkbox"> <input type="checkbox" value={{checklist_entry.entry_id}}> {{checklist_entry.text}} </label> {% endfor %} how can setup ajax request update via ajax? , need @ server side?
you can have submit button posts server.
if want update on table without reloading page, bind checkbox's onclick event , use ajax send request server , append data table.
Comments
Post a Comment