javascript - question regarding serializeArray and passing into url -


i not totally familiar javascript, jquery.

i trying following. note a-f names dropdown menus. can clarify? thanks

     var a_params = $("#a").serializearray();      var b_params = $("#b").serializearray();      var c_params = $("#c").serializearray();      var d_params = $("#d").serializearray();      var e_params = $("#e").serializearray();      var f_params = $("#f").serializearray();       params.push({ name: 'menu_mode', value: '2-1' });      $.get("./scripts/model.cgi", a_params,b_params,c_params,d_params,e_params,f_params, function(data){         $("#grapharea").html(data);         $("#prog").html(" ");      }); 

more comments: in cgi script dumping inputs see if receiving values a-f_params isn't case. ideas why?

you have create 1 array(or jquery-object in case) object's, , serialize array.

$('#a,#b,#c,#d,#e,#f').serializearray(); 

but needed, if dont want serialize e.g. input-fields.

otherwise can use

$('#form').serializearray(); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -