0👍
✅
The data
option for your $.ajax
call needs to be specified as name/value pairs, not as a query string. The ajax
call converts these into the query string for you.
So
data: {"date" : date, "vendor_id": data.vendor_id},
Source:stackexchange.com