Pass data to remote in jquery validate

前端 未结 1 1453
醉梦人生
醉梦人生 2021-01-25 13:32

How can I pass additional data to server with remote request in jquery validate. I tried doing something like this, and it\'s not resulting as expected.

personal         


        
相关标签:
1条回答
  • 2021-01-25 14:21

    Have you tried with a function and return?

    data: {
      'userID': function(){ 
         return $('#id').val(); 
       }
    }
    
    0 讨论(0)
提交回复
热议问题