SixFive...

cf_twoSelectsRelated – fix for preselect issue

I was hard pressed to find a fix for the issue that occurs in this ColdFusion Custom Tag cf_twoSelectsRelated originally by Nate Weiss. When you use the emptyText1 and emptyText2 attributes together and want to preselect values the second box wont fill out the values required. I knocked up a bit of javascript you can […]
November 4, 2005 6:53 pm

cf_twoSelectsRelated – fix for preselect issue

I was hard pressed to find a fix for the issue that occurs in this ColdFusion Custom Tag cf_twoSelectsRelated originally by Nate Weiss. When you use the emptyText1 and emptyText2 attributes together and want to preselect values the second box wont fill out the values required. I knocked up a bit of javascript you can put in the bottom of your custom tag that will fix this issue – and preselect the values in both boxed if they are selected.

I have posted the completed file at the bottom of this post in a zip file – use the download link.

Leave a Comment