HighDots Forums  

variabile e oggetto form?

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss variabile e oggetto form? in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dade
 
Posts: n/a

Default variabile e oggetto form? - 06-07-2006 , 10:09 AM






ragazzi mettiamo che io ho questa variabile:

variabile1 = "pippo";
poi devo collegare pippo al nome di un input text in questo modo:

document.modifica_abbonamento_codice. variabile1 .disabled=true;

ma come faccio?

Reply With Quote
  #2  
Old   
Cristiano Larghi
 
Posts: n/a

Default Re: variabile e oggetto form? - 06-07-2006 , 10:11 AM






In data Wed, 07 Jun 2006 16:09:20 +0200, dade ha scritto:

Quote:
variabile1 = "pippo";
poi devo collegare pippo al nome di un input text in questo modo:
document.modifica_abbonamento_codice. variabile1 .disabled=true;
document.modifica_abbonamento.elements[variabile1]

--
"qualcuno è andato per età
qualcuno perchè già dottore
e insegue una maturità, si è sposato, fa carriera
ed è una morte un po' peggiore"
F.G.


Reply With Quote
  #3  
Old   
dade
 
Posts: n/a

Default Re: variabile e oggetto form? - 06-07-2006 , 10:24 AM



Cristiano Larghi ha scritto:

Quote:
document.modifica_abbonamento.elements[variabile1]

mittico


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.