I'm new on jQuery (in fact programming I'm novice) and need some guide to solve something I have to...
I'm building a form that have two fields which converts values into hashed strings using Alex Weber's sha256 jQuery plugin. In addition I need to compare it with the ones stored in a xml, and permit form submit only if user input and xml values are equal.
The plugin works and I can get data from the xml, but i'm getting problems when I try to compare the data. That's the code I wrote:
The issue is that it doesn't apply the condition and shows me the alert despite the data that I put in the form fields. Obviously I'm doing something wrong, but I can't see where.
Thanks in advance for everybody that pay atention to this post, and i will be grateful if somebody helps me to find the mistake.