Question
Activating validate on cfinput only when checkbox is selected
I am designing a credit-card entry form hat automatically
checks the validity of an entered credit-card number. Using cfinput
validate="creditcard" works fine, but I cannot figure out a way
(maybe using Javascript) to turn off validation if the user selects
"Gift Card" from either a drop-down menu or a checkbox. If I use
two boxes then ultimately the credit-card field box will be left
empty - also causing problems for the validation of that field.
Any suggestions?
Thank you.
Any suggestions?
Thank you.