I have a JS SIDE:
function recolor(ddl, hdf) {
var ColorHDF = document.getElementById(hdf); //Error Undefined
ddl.style.backgroundColor = 'White';
ColorHDF.value = 'White';
}
And this Asp.net side:
<asp:DropDownList ID="DDL_NumCadreLA_1" onchange="recolor(this, 'HDF_NumCadreLA_1');" runat="server" Width="40" CssClass="reducedSize" Enabled="false"></asp:DropDownList>
<asp:HiddenField ID="HDF_NumCadreLA_1" Value="load" runat="server"></asp:HiddenField>
with 'this' it's pretty easy to get the control on javascript function, but I am unable to get the Hiddenfield control into it to change his value, what should I to get it ? (with this code, ColorHDF is undefined)