Ciao,

anche se hai risolto ti sposto su JS cosi se qualcuno cerca qualcosa tipo quello che hai fatto potrebbe trovare dei riferimenti