Guest User

Untitled

a guest
Oct 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. (function( $ ){
  2. $.fn.serializeJSON=function() {
  3. var json = {};
  4. jQuery.map($(this).serializeArray(), function(n, i){
  5. json[n['name']] = n['value'];
  6. });
  7. return json;
  8. };
  9. })( jQuery );
Add Comment
Please, Sign In to add comment