validation - Trying to validate Credit Card Form (jQuery, ColdFusion) -


i have cc update info form. last 4 of card number shown , rest starred out (******1234).

when goes in , needs update expiration date on card same number, have require them update card well, since the starred out number submit api use, , return bad cc number. api requires both sets of numbers (card number & exp date) submitted. simplest solution seems to check on submit if cardnumber starred out.

how check if first 12 numbers starred out (****) javascript/jquery?

also, please feel free suggest different way deal if know better solution.

i'm familiar enough jquery validation, have never seen can this.

thanks in advance,

steven

if storing data in database when new exp data arrives can't cc number in db , pass along way? other issue if form passing asterisks them:

<cfif find(ccnum,"*")>    have stars cc before passing <cfelseif isvalid("cc", ccnum)>   have valid cc num... combine other data , submit it. <cfelse>   have unexpected send error user </cfif> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -