'Adding a variable in fieldname call?

I need to enable some disabled fields in my html page that have a count for example :

<input type="text" name="company_<?php echo $j; ?>"size="10" disabled="disabled">

where $j is a counter variable... so I need to do something like this in JavaScript part to enable these fields:

document.form1.company_"VARIABLE".disabled=false;

So is it even possible to add a Variable value in such a place?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source