This topic is locked
[SOLVED]

 Credit Card Date - No day value needed

8/11/2011 10:42:24 PM
PHPRunner General questions
X
Xilllly author

Hi,

Can anyone tell me how to remove the dd from dd/mm/yyyy dropdown boxes when a customer chooses their expiry date for a credit card? In other words I just want mm/yyyy and no dd.
Thanks

C
cgphp 8/12/2011

In the Javascript Onload event of add/edit pages:

$("select[id^='dayvalue_yourdatefieldname']").val("1").trigger("change").hide();
X
Xilllly author 8/14/2011



In the Javascript Onload event of add/edit pages:

$("select[id^='dayvalue_yourdatefieldname']").val("1").trigger("change").hide();



Great Thanks...