How can I force jQuery Validate to check for duplicate username in database?

前端 未结 5 1117
春和景丽
春和景丽 2021-01-03 11:52

I\'m coming into the middle of this project so I\'m having to do a bit of re-writing because of sloppy code. I am using jQuery 1.6.1 and Validate 1.8.1.

First, here\

5条回答
  •  甜味超标
    2021-01-03 12:11

    On your server side script, try returning true or false instead of available and notavailable, as both of those strings are equivalent to true.

提交回复
热议问题