Setting A Variable With Javascript
Posted: Wed Jul 07, 2010 4:28 pm
I know php, but I'm new to Javascript and AJAX.
I have an ajax form that firsts requests that the user make a selection from the drop down. When the selection is made, a table is displayed. That all works great.
I have some input boxes to make additions to the table. That works great too EXCEPT... when I write the changes to the database, I need to use the id field from the drop down box in the where clause of my update query.
So my question is, how do I set a variable for later use when I make a selection from the drop down?
I have an ajax form that firsts requests that the user make a selection from the drop down. When the selection is made, a table is displayed. That all works great.
I have some input boxes to make additions to the table. That works great too EXCEPT... when I write the changes to the database, I need to use the id field from the drop down box in the where clause of my update query.
So my question is, how do I set a variable for later use when I make a selection from the drop down?