I am getting the error stripecall is not defined even though function is defined and it is a global function:
Here is the code:
<button type="button" id="addcard" class="btn btn-success"
onclick="stripecall();">
<i class="icon-save"></i> Submit
</button>
And function is defined like:
function stripecall() {
// function stuff
}
What I've tried:
- Tried enclusing whole form in
<form></form>tags - Tried binding button click event via jQuery's
click,liveandon
Everything seems to be okay but still getting that func is not defined error.
Can someone help me what I am missing ?
Thanks for the help
isCreditCardfunction:else: mu --;should beelse: muu--;. Also instripeResponseHandlerfunction at the end you have a doublequote left open.