daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Dec 12th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function form_to_qs(form) {
  3.     var qs = "";
  4.     var fields_array = $(form[0].elements);
  5.     fields_array.each(
  6.         function (e,i){
  7.             var pair = e.name + "=" + encodeURIComponent(e.value);
  8.             qs = qs + pair + ((i < fields_array.length - 1)?"&":"");
  9.         }
  10.     );
  11.     return qs;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top