I\'m having a very hard time trying to do something very simple. Here\'s the code:
if(data == \'success\') { alert(\'foo\'); }
Client side validation working fine.
$.trim() fine.
Thank You Nick. It took me long to understand why its not working ...