How to retrive the value in javascript and set table values


SET HTML LABLE TEXT VALUE
----------------------------------------------------------------------------------------------------------------------
document .getElementById ("label id").innerHTML

SET BACKGROUND COLOT OF <TD>
----------------------------------------------------------------------------------------------------------------------
 document.getElementById(val).style.backgroundColor="#"+document.getElementById('<%=txtCell.ClientID%>').value

SET<TD> TEXT
----------------------------------------------------------------------------------------------------------------------

 document.getElementById("tdHeader").style.color=  "#"+document.getElementById('<%= txtDocTitle.ClientID%>').value;



GETTING VALUE FROM SERVER SIDE TEXTBOX CONTROL

----------------------------------------------------------------------------------------------------------------------
document.getElementById('<%=txtCell.ClientID%>').value

SET HTML LABEL TEXT COLOR
----------------------------------------------------------------------------------------------------------------------

document.getElementById("lbl33").style.color="#"+document.getElementById('<%=txtCell.ClientID%>').value

SET THE TABLE GRID AND THE TEXT COLOR
----------------------------------------------------------------------------------------------------------------------

document.getElementById("tabCalender").style.color=  "#"+document.getElementById('<%= txtTableGridColor.ClientID%>').value;

GET THE SERVER SIDE DROPDOWN LIST CONTROL VALUE
----------------------------------------------------------------------------------------------------------------------
document.getElementById('<%=drpWeekStart.ClientID%>').value

SET TABLE BACKGROUND COLOR
----------------------------------------------------------------------------------------------------------------------
 document.getElementById("tableMain").style.backgroundColor= "#"+document.getElementById('<%= txtTableGridColor.ClientID%>').value;