-1
Get ready because business is very complex.
I’m using the library datatables of Jquery (I’m pretty new at this) to list a table from my bank, when listing, each record received a checkbox so I could get the id of the selected records.
Intent: save the selected ones as foreign key in another table,
NOTE: the page should not reload until all records that the user wants to mark are selected.
Problem: The datatables only recognizes the id that is in the current tab, when changing tab they are not sent to my PHP.
To solve I need to be able to send all Ids selected in all tabs for the PHP, also tried with a search box, but could not send the result that appeared down to the DIV side without giving RELOAD on the page.
I’ll leave the repository link on Github so you want to try: Link to the Github
Don’t call the organization or anything else, I’d appreciate it if you’d focus on the problem first.
I found part of a possible solution:
I’m using Jquery to take the event click on checkbox, capture id and place in a input as text.
The problem now is to treat the ids, give the explode in them is easy but take out the ids you uncheck not yet managed.
Intention: To remove the Ids of input by unchecking a checkbox
Problem: I don’t know how to locate this string let alone remove it
To test use the save button after checking and unchecking a checkbox, you will realize that you will have repeated ids that should no longer be there;
I’ll leave the repository link on Github so you want to try:
Hello, to point out that your question has been solved, do not edit the title to solved. Instead, accept the correct answer.
– gmsantos
Thank you, I entered the forum a few days, so it is normal to err, but I’m getting used, thank you for warning.
– Patrick Dantas