Perché non è un evento associabile ad un input usa onchange="funzione()"
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum