I'm using jQuery 2.x,
Why?
Are you writing for a restricted environment where you know for sure
that jQuery 2.x will be supported? (For example, a PhoneGap project
for iOS or Android?)
jQuery
library is on a dual track now - 2.x does not support Internet
Explorer < 9, and is slightly smaller and slightly faster than
the equivalent jQuery 1.x. There are NO functional differences -
it is just browser support.
If
you are creating a website for the Internet, you should either use
jQuery 1.x, or else write a little bit of fallback code so that IE
6,7,8 users will get jQuery 1.x.
Datatables.net
has a
good way
to
achieve this, but I suspect that works only with jQuery 1.x
because I can't call the server side code with ajax.
I
suspect, rather, there is some problem with your server. Did you try
to debug? Did you check to see if the requests are sent? Do they
have correct content? Does the server get the request? Does the
server send a reply? Does the reply have the correct data? Etc.