I have a checkbox list generated using php depending upon number of coloumns in database,
for each checkbox i’m using a onchange function to store it’s name in session variable if it’ checked.
In order to select all checkbox i’m using a javascript….but in that way i’m not able to send checkboxes name to session.
How can i select all checkboxes at a time as well as store their names in session variable(only checked ones name must go out of all)??
I have a checkbox list generated using php depending upon number of coloumns in
Share
If You are using AJAX function call on
onChange=""then you must be executing a single function every time you click on a checkbox and setting a session variable, in that function you may place this conditionally like