I am conditioned in this code with this problem. I works fine except for code line.
and This part is not working:
And if (reputation> $ 'bbuserinfo [reputation]') · For reputation & lt; = '0') {
$ ('. Errorempty_ $ post [postid]'). Hide (); . Hide $ ('. Errorsameuser_ $ post [postid]'); $ ('. Errorreputation_ $ post [postid]') fadein (200). } reputationamount = What is user input (example: 5) $ bbuserinfo [prestige] = The number of representative points of the donor. (Example: 4)
Then we say that this is ..
If (5> 4 || 5> = '0') {
$ ('errorerrorputation_ $ post [postid] '). FadeIn (200);
}
It should throw that error, but instead it runs Ajax Post.
Help?
Other conditions work fine.
The reason for this is that there is a number on one side of the operator, comparison comparison ( & lt ; ) If there are strings on either side of the operator, JavaScript will also replace the second number before the comparison. Try
} If (reputation & Gt; = $ bbuserinfo [reputation] || standing & lt; = 0) {
No comments:
Post a Comment