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:
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