to relate 2 select boxes, 1 is location, the 2nd is facility.
Do any of you know of a way to pre populate the 1st select box in a
way that it populates the 2nd?
Using _javascript_ I can make the 1st select box populate with the right data..
both using .value and .selectedIndex.
But neither of these trigger a Change even I guess and it fails to
auto populate the 2nd select box.
This one populates the first dropdown and selects the correct one but
nothing happens to the second.
--------------------------------------------------------
<script language="_javascript_">
document.laforma.c_locationid.selectedIndex=3;
document.laforma.c_locationid.click();
</script>
--------------------------------------------------------
This one does the same.
--------------------------------------------------------
<script language="_javascript_">
if (<cfoutput>'#task.c_locationid#'</cfoutput> != '' &&
<cfoutput>'#task.c_facilityid#'</cfoutput> != '') {
document.laforma.c_locationid.value =
<cfoutput>'#task.c_locationid#'</cfoutput>;
document.laforma.c_facilityid.value =
<cfoutput>'#task.c_facilityid#'</cfoutput>;
}
</script>
--------------------------------------------------------
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

