i have a variable need to change value in javascript
but this variable name composed with another variable ,
how can i change the value of that variable
document.form.aaa_id.value where id is a variable , thx
Printable View
i have a variable need to change value in javascript
but this variable name composed with another variable ,
how can i change the value of that variable
document.form.aaa_id.value where id is a variable , thx
Use square bracket notationCode:document.form['aaa_'+id]
it works well , thanks so much