Response title
This is preview!
<form id="frm_cccheckou" action="/signup/processCC" method="post" enctype="multipart/form-data">
<input type="hidden" id="clienttoken" value="<?php echo $this->getClientToken() ?>" />
<label for="cardholder_name">Name On Card:</label>
<input type="text" id="cardholder_name" required data-braintree-name="cardholder_name" value="" />
<label for="number">Creadit Card Number:</label>
<input type="text" id="number" required data-braintree-name="number" value="" />
<label>Expireation Month / Year:</label>
<table style="width:150px">
<tr>
<td>
<input type="text" id="expiration_month" class="required" data-braintree-name="expiration_month" maxlength="2" value="" />
</td>
<td style="width:5px">/</td>
<td>
<input type="text" id="expiration_year" class="required" data-braintree-name="expiration_year" maxlength="2" value=""/>
</td>
</tr>
</table>
<div style="display: inline">
<label style="width:100px;">Security Code:</label>
<div style="width:80px;">
<input type="text" id="cvv" class="required" data-braintree-name="cvv" maxlength="4" value=""/>
</div>
</div>
<label for="agreeterms">I agree to the terms and conditions.</label>
<input type="checkbox" class="required" id="agreeterms" class="required" name="agreeterms" value="1" />
<a class="ui-btn">View Terms and Conditions</a>
<input type="button" class="btn_submit_payment" value="Submit Payment" />
</form>
var $wrp = $("#frm_cccheckout");
var validate = $wrp.validate();
var isvalid = validate.form();
if(isvalid) {...}
var $wrp = $("#frm_cccheckout");
var validate = $wrp.validate();
Date rules are applied like
data-rule-required="true"
data-rule-email="true"
data-rule-minlength="6"
See a sample here https://github.com/jzaefferer/jquery-validation/blob/master/demo/custom-messages-data-demo.html
First you load the complete CSS, and then you load your custom theme, icons, and structure.Not sure about his. I load these in this order.
jquery.mobile.structure-1.4.5.min.css
That is the complete jQuery Mobile CSS with theme, icons, and structure. It is what you should load if you are NOT using a custom theme.jquery.mobile.external-png-cur.min.css
I don't know what a "PCI rule" or "Braintree" are. but name="" is a requirement for jquery.validate , as well as for form submission. If you submit a form that has no name attributes, you will just submit an empty form, and your server will get no values.I think the problem is not having name="" in the input tags and in this case I can't and comply with the PCI rules as Braintree dictates.
© 2013 jQuery Foundation
Sponsored by and others.