jQuery .serialize() not a function
Solution 1:
Because $(me).find('input').val()
is a string and not a jQuery object, it doesn't have the serialize function.
If you want to serialize the input (with its value), use $(me).find('input').serialize();
But be sure to really need it : this function is rarely useful for just one input (we generally use it for forms). If you just want the value, use $(me).find('input').val()
and if you're debugging and want to inspect the element, use console.log($(me))
and open the console of your browser.
Solution 2:
You can use .serialize()
on form directly.
you can serialize form as below
var serializeData = $('form').serialize();