To send a form in get and post I use this form:
<form name="send" action="/example.php?id=1" method="post" accept-charset="utf-8"> <p> <b>Удалить куки: </b><input type="checkbox" name="delete_cookie" value="1"> </p> <input type="text" name="id" value="3"> <input type="submit" value="Отправить"> </form> I need to use jQuery for some input for example with class="get-key" , to send with get . That is what I do, I create input with a class. Then all the values using .each I'm going into an array, let's say id and value. The only problem is that how do i use jQuery to put all id and value that I collected from input 's into action="example.php?id=val....&id[n]=val[n] .