Does anyone have a idea how could modify my list_page to have a comments textbox. My myql query pulls up a shopping list according to location and i want to at the bottom for each list have a comments or notes text box at the end where i can put notes for order that is going to be created.
How do i make the comments a editable text box ? So i can enter shipping notes or instructions.
I added the field to my shopping_list, how ever when it is filled out i want it to save to a different table. Can i do this with modifying my existing routine
function savedata(status)
{
var arr=$("input[@id^='id']");
for (var i=0;i<arr.length;++i)
{
var param=arr[i].value;
var id=parseInt(param);
var price = parseFloat($("#price"+param).attr('value'));
var quantity = parseInt($("#quantity"+param).attr('value'));
var total = parseFloat($("#total"+param).text());
if (quantity>0)
$.post("save.php", { id: id, quantity: quantity, price: price, total: total, status: status } );
}
if(status!='')
{
var total = parseFloat($("#grandtotal").text());
$.post("save_orders.php", { status: status, total: total } );
$("#usermessage").text('Order saved and submitted');
reset_grandtotal();
}
else
{
$("#usermessage").text('Order saved');
}