Issues with Dynamically generated rows for a form
Hello people, I have a time entry form where 4 inputs exist -
1. Select id="project" based on which
2. Select id="task" is generated,
3. This is a hidden text input which shows when option "Add task is selected" in tasks select
This is being achieved with jquery & js
4. Fourth and last is time entry for each day of week .
Now what I did is included an "Add Row" button that replicates these 4 fields on click. The change in one select field is mirrored across all of them. How can I have them to behave independently? And after this how can I access the data submitted from $_POST as I have to update this into the database.
Current working model here http://fracktal.in/tms/addhours.php. Click Add row and try selecting a project, task, add new task combination.