Why wouldn't you just have

<select name="customer" id="customer">
            <option value="50ccdae0-79bf-11dd-ad8b-0800200c9a66">Joe
Bloggs</option>
            <option value="9c335820-d878-4db3-b90a-728046cb8849">Dave
Something</option>
</select>

<a id="CompanyLink"></a>


<script type="text/javascript">
$(document).ready(function() {
      $("#customer").change(SetLink);
      SetLink();
});
function SetLink() {
       var obj = document.getElementById("#customer");
       obj = obj.options[obj.selectedIndex];
       $("#CompanyLink")
                .attr("href", '/view_customer_company.cfm?company_id='
+ obj.value)
                .html('View ' + obj.text + ' Company');
}
</script>




deeming the key/value lookup unnecessary?

Reply via email to