|
I am trying to color and input box inside a ColdFusion program with a Javascript that is not called by an event.
<script language="javascript">
var x=<cfoutput>
'#x2#'
</cfoutput>,
y=<cfoutput>
'#x3#'
</cfoutput>;
alert(x+' '+y);
eval('f1.'+x+'.focus()')
eval('f1.'+x+'.style=\"background-color:#FF6A6A\"')
</script>
x is the input (not cfinput) box name and y is a string.
Have tried without the \s.
Setting focus works but setting color does not. What am I doing wrong?
Thankyou very much and sorry indentation lost.
|
|
|
|
|
|
|
|