not tested, but something like:

<a href="#" onclick="takeMeThere();">Add to Wishlist</a>

<script type="text/javascript">
     function takeMeThere() {
          var mySelectBox = document.getElementById('mySelectBox');
          var productID =
mySelectBox.options[mySelectBox.selectedIndex].value;

          location.href = "/account/index.cfm?mode=wishlist&productid=" +
productID;
     }
</script>

On Wed, Sep 16, 2009 at 11:54 AM, Che Vilnonis <[email protected]> wrote:

>
> Hope this one is easy... how can I get the selected value from a form's
> select box and then pass that value as a variable in a href? Can it be done
> with an onClick event?
>
> <a onclick="*some js here*;"
> href="/account/index.cfm?mode=wishlist&productid=*js value here*">Add to
> Wishlist</a><br />
>
>
> Thanks, Che
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326370
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to