the function is valid for onclick. checked via alert
help with the php code that this data will receive and send to the database
function SaveMenu() { var tab = document.getElementById("AddNewTable"); var elems = tab.getElementsByTagName('*'); var Stroka = ''; for (var i = 0; i < elems.length; i++) { strID = elems[i].id; if (strID.substr(0, 5) == 'EdIzm') { Stroka = Stroka + strID.substr(5) + "|"; Stroka = Stroka + elems[i].value + "|"; Stroka = Stroka + document.getElementById("EdCost" + strID.substr(5)).value + "|"; } } }
данные которые я выбрал или записал, сохраняются- and where did you record and where do you save it? - Alexey ShimanskyXMLHttpRequestand questions will disappear. - AndstrIDvariable is global. Addvarif it was not planned - vp_arth