mptwoadmin
Programmer
Hi Im trying to popluate all the input fields in my form in one shot.
Is it possible to do what I am attemping to do below? I am lost on what I am doing incorrectly now? I get no errors but my form fields are not populated either..
Thank You
<cfquery name="_data" datasource="db">
SELECT *
from PerformanceBoard
</cfquery>
<cfset xx = QuotedValueList(_data.tagname)>
<script type="text/javascript">
function loadIt(){
var myStringArray = [<cfoutput>#xx#</cfoutput>];
for (i=0,tot=myStringArray.length; i < tot; i++) {
(document.getElementsByName("myStringArray").value = "123456");
}}
</script>
<body onload=loadIt();>
<form name=perf method="post" >
<input type="text" class="form-textbox" id="input_1a" name="so_currentmonth_safetyrate" size="20" />
<input type="text" class="form-textbox" id="input_1a" name="so_currentmonth_goal" size="20" />
</form>
</body>