tags:

views:

24

answers:

1

I am submitting a form element named "CCExp" it is made up of two select boxes #Month and #Year. I need to combine #Month and #Year so it submits as MM/YYYY.

$("#CCExp").val($("#Month") + '/' + $("#Year")); 

Is this close?

+2  A: 

Very close. I think this should do it:

$('#CCExp').val($('#Month').val() + '/' + $('#Year').val());
g.d.d.c
Thank you sir!!
Dirty Bird Design