you will need to use js for this.
<select id="select1">...</select>
<select id="select2">...</select>
<input type="button"
onclick="somefunction(document.getElementById('select1').value,
document.getElementById('select2').value)" value="Click Me" />
or if you are using jquery, then:
<input type="button" onclick="somefunction($('#select1').val(),
$('#select2').val())" value="Click Me" />
Azadi
On 17/04/2010 20:31, Chad Baloga wrote:
> I have a page which has 2 select boxes. At the bottom on the page I have a
> button which has an onclick in it. I want to pass the 2 values from the
> select boxes to my onclick page. How can I do this? I tried binding in the
> onclick but that did not work. Thanks
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:332964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm