jQuery 'If' statement string comparison not working

前端 未结 3 556
眼角桃花
眼角桃花 2021-01-04 09:35

I\'m having a very hard time trying to do something very simple. Here\'s the code:

        if(data == \'success\') {

            alert(\'foo\');

        }          


        
3条回答
  •  盖世英雄少女心
    2021-01-04 09:40

    Client side validation working fine.

    $.trim() fine.
    

    Thank You Nick. It took me long to understand why its not working ...

提交回复
热议问题