Cannot pass array from checkbox via jquery -


i'm having trouble posting array data, can show me doing wrong?

 function submitchecks() {     var ids = [];      $(".question_checked_box").each(function () {         var id = $(this).attr('id');         ids.push(id);     });    alert(ids);     $.post("at_post.jsp", {pass: "topping", check: "1", top: ids},             settimeout(reloader, 2000));  } 

the alert(id) works, , shows intended data sent post page, other page receives nothing.

i've tried:

 string[] tops = request.getparametervalues("top");  

shows nothing, returns null

i can't via el either:

c:set var="poster" value="${paramvalues.top}" scope="session"/> 

any appreciated. thanks!


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -