Menu
Hello,
I am new to javascript and have what i think is a really simple problem. I have a few drop downs that I want to disable via javascript.
[code]
var x = $get(‘currentEventInputSelect’).value;
if (x == 4)
{
$get(name_dropDownListControl’).disabled=true;
$get(address_dropDownListControl’).disabled=true;
$get(age_dropDownListControl’).disabled=true;
}
It will only work if I put this before the if:
[code]
alert(x);
can anyone please explain to me why this happens. I am using VS 2005 C# and the above code is being called in the
[code]
function pageLoad(sender, args)
{
…
{
Thanks