no idea why but this does not work right

```
var ddlCar = document.getElementById('<%=ddlCar.ClientID %>');
var carname_dropdown = ddlCar.options[ddlCar.selectedIndex].text;

if (!carid.length && (carname_drop).length)
    carname = carname_drop;

```

So if cariid is invalid and carname\_drop is valid, use (set) carname to carname\_drop

I know carid is set to a valid number. I know that carname\_drop has a valid number. So this if statement should skip the setting of canname based on the fact that carid is indeed valid and has a length (a value).