attachEventListener(document.getElementById('addform'), "submit", validateadd, false);
attachEventListener(document.getElementById('editform'), "submit", validateedit, false);
attachEventListener(document.getElementById('addeditform'), "submit", validateaddedit, false);
addform is from index.php, editform and addeditform are from edit.php. The problem is that it ignoring my 2 last attachEventListeners. I put the alert("checking");
to see if its going into the evenListener and its not. Im connecting to the js file from both index.php and edit.php but its going only into the first eventlistener.
When i click on the submit buttons of editform and addeditform its not doing the validation. What could be the problam?
I didn't try it because i allready mixed edit and index to be the same page and it solved the problam, but i guess you got a point in what you are saying.
Another question to: How can i do that everytime there is a mouseover event in a table, the row which i mouseover on changes its color?
felgall, Thank for your answear but the first eventlistener is working and not the last one so i guess it's not the problem.