Ok got it to work and here is the code of anyone is interested:
<script>
function restoreDefaultValues(obj) {
var getOriginalValue = parseInt(obj.name.substr(7, 2));
if (obj.options[ obj.selectedIndex ].value != '') {
for (var i = 1; i<5; i++) {
var makeObj = 'Company' + eval(getOriginalValue
+ i);
document.getElementById( makeObj
).selectedIndex = 1;
}
}
}
</script>
>><cfform> and <cfinput>
>
>I need to do things such as if field1 = NONE
>the disable fields 2-5 etc.
>
>I think I have to do that in javascript, correct?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1906
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54