Se c'è un submit() probabilmente c'è un form. Ci posti l'attributo action del form?