Get data from table rows and save in database

2021-12-04 Thread Eugene TUYIZERE
Dear Colleagues, I have data in the table. I want to get the rows value and save them in the database. How can I do this with jquery? The table I have is like this [image: image.png] This is what I have in HTML. The total is automatically calculated as I type the amount Description Amount Sc

Re: Get data from table rows and save in database

2021-12-04 Thread Jet Ezra
STEPS 1. You will add a name attribute to all your input fields. 2. Add the crsf_token django template in-built filter to support 'POST' 3. Change your form's method to 'POST' 4. Add an action attribute and set it to your view 5. Then the JQUERY part will be as follows 6. Don't forget to give your

Re: Get data from table rows and save in database

2021-12-04 Thread Fredrick Ekoma
what is your product On Sat, 4 Dec 2021, 11:17 am Eugene TUYIZERE, wrote: > Dear Colleagues, > > I have data in the table. I want to get the rows value and save them in > the database. How can I do this with jquery? > The table I have is like this > [image: image.png] > This is what I have in HT

Re: Get data from table rows and save in database

2021-12-04 Thread ram s
use name attribute in site input tag... On Sat, Dec 4, 2021 at 3:47 PM Eugene TUYIZERE wrote: > Dear Colleagues, > > I have data in the table. I want to get the rows value and save them in > the database. How can I do this with jquery? > The table I have is like this > [image: image.png] > This