Secondo te quanto postato è sufficiente per avere aiuti
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum