uncaught typeerror $(...)payform is not a function
Opened this issue · 1 comments
msb78600 commented
<script src="https://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="~/payform-master/dist/jquery.payform.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).on('change', '#CreditCardNo', function () {
$('#CreditCardNo').payform('formatCardNumber');
$('#expiry').payform('formatCardExpiry');
$('#CVC').payform('formatCardCVC');
$('#numeric').payform('formatNumeric');
});
</script>
I am coding in ASP.NET MVC 5 and i am facing the error uncaught typeerror $(...)payform is not a function and i m stuck here i included all the libraries in my project downloaded from GitHub Jquery
ddayguerrero commented
Hey @msb78600, looking at the snippet you shared. I assume that you have jquery
and the existing elements (e.g. #CreditCardNo
, #expiry
, etc.), is that correct?