I'm trying to figure out a way to load 1 single tab(tabs by jQuery) without reloading all the others. The issue is that I have a submit button and a dropdown that will create a new form, and when on this new form 'OK' or 'CANCEL' is clicked, it has to get the original form back.
The code to load a part of the page that I found is this:
$("#tab-X").load("manageTab.php #tab-X");
But now I would like to know how to use this in combination with the $_POST variable and the submit-button
Clarification:
- I have a .php(manageTab.php) which contains the several tabs and their contents
- I have in each of these tabs a dropdown containing database-stored information(code for these dropdowns is stored in other pages)
- for each of these dropdowns, there exists a submit button to get aditional information out of the DB based on the selection, and put these informations in a new form for editing
- this new form would ideally be able to be submitted without reloading everything except the owning tab.
Greetings