I don't see any issues in the code. The first thing you need to do is see what part is failing, put an alert inside that function so make sure it is going off when it should. That will tell you if it has to do with not being triggered or not being modified correctly.
|