non credo che tu possa dare un nome che inizia con una cifra:
cambia 1_domanda in domanda_1

Inoltre la funzione dovrebbe essere nell'head del documento.

P.s.:
ma non è più facile usare getElementById() ??