ch 11 ex2 with ajax but with destroy