How to pass a value in html

I made a html table. I want to change the background color of table cell dynamically.

I set cell background color as this bgcolor="#E6E6FA"

I want to set "#E6E6FA" value as a dynamic value using calculated value or input value.

How can I do achieve that?

<DIV align=center style="margin-top:30px;">

<TABLE align=center style="HEIGHT: 300px; WIDTH: 497px; FONT-WEIGHT: bold;COLOR: #1E90FF" border=1 cellPadding=2>

<TBODY>

<TR style="HEIGHT: 21px">

<TD align=center style="FONT-SIZE: 20px; HEIGHT: 21px; WIDTH: 248px; " colSpan=2>User Registration</TD></TR>

<TR style="HEIGHT: 21px">

<TD style="HEIGHT: 21px; WIDTH: 248px; PADDING-LEFT: 20px;" bgcolor="#E6E6FA">First Name</TD>

<TD style="HEIGHT: 21px; WIDTH: 248px" ><SpotfireControl id="db53aa92f09c405fa45aa995822ce4f0" /></TD></TR>

<TR style="HEIGHT: 21px">

<TD style="HEIGHT: 21px; WIDTH: 248px; PADDING-LEFT: 20px" bgcolor="#E6E6FA">Last Name</TD>

<TD style="HEIGHT: 21px; WIDTH: 248px"><SpotfireControl id="ff45c27612c943f69e68343b2b1d6f7b" /></TD></TR>

<TR style="HEIGHT: 21px">

<TD style="HEIGHT: 21px; WIDTH: 248px; PADDING-LEFT: 20px" bgcolor=coral>Email</TD>

<TD style="HEIGHT: 21px; WIDTH: 248px"><SpotfireControl id="a58b6f88245641f288af3907b0aec7a0" /></TD></TR>

<TR style="HEIGHT: 21px">

<TD style="HEIGHT: 21px; WIDTH: 248px; PADDING-LEFT: 20px" bgcolor="#E6E6FA">Password</TD>

<TD style="HEIGHT: 21px; WIDTH: 248px"><SpotfireControl id="b972159ce4444cfd84c73a9ae090cfa7" /></TD></TR>

<TR style="HEIGHT: 21px">

<TD style="HEIGHT: 21px; WIDTH: 248px; PADDING-LEFT: 20px" bgcolor="#E6E6FA">Gender</TD>

<TD style="HEIGHT: 21px; WIDTH: 248px"><SpotfireControl id="a6bb8d760ec845a2a01ed42fe4277219" /></TD></TR>

<TR style="HEIGHT: 21px">

<TD align=center style="FONT-SIZE: 20px; HEIGHT: 21px; WIDTH: 248px; COLOR: gray" ><SpotfireControl id="1158280db4524fef885fff332c0f71b9" />

</TD>

<TD align=center style="FONT-SIZE: 20px; HEIGHT: 21px; WIDTH: 248px; COLOR: gray" ><SpotfireControl id="8dccbd66a54746848d1915ada3667347" />

</TD>

</TR>

</TBODY></TABLE></DIV>

Attachments

AttachmentSize
Binary Data html.dxp3.86 MB

(2) Answers

Login