I just got an error and I do not know why it is happening. Below are my functions.
function senditnow(){
//something
}
$('.check-with-bank').click(function(){
//something
checksuccess_checkall(successsent);
if(successsent == true) {
//It already passed and come to this function but It cannot call.
senditnow();
}
}
I also attached jQuery and all other features working well except stopping at senditnow()
function.
Can you help me to explain why?
the problem may be that successsent
value is not changing, as far as i know pass by reference only works on arrays an objects, so it would be better if you do
successsent = checksuccess_checkall();
if checksuccess_checkall()
returns a boolean, that way you can validate if successsent
is true, and you should check what values successsent
has before and after calling checksuccess_checkall()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.