put a value with javascript on the url
<p>Is there a way to add the select-result on the url when the pop up window appears?
The select-result gives the value of the boxes selected and i want to pass the values selected gto a form but i am not ussing a form. can i pass the values ussing the url?</p>

<p>i want to add the selected values like form.php?id=2882,222,22412,23</p>

<pre><code>$(function() {
    $(".selectable").selectable({
        filter: "td.cs",

        stop: function() {
            var result = $("#select-result").empty();
            var result2 = $("#result2");
            $('.ui-selecting:gt(31)').removeClass("ui-selecting");



          confirmation($(".ui-selected").length + " box selected. "+($(".ui-selected").length));

          function confirmation() {
    var answer = confirm($(".ui-selected").length + " box selected.  "+($(".ui-selected").length));
    if (answer){

        window.open ("form.php","mywindow","menubar=no,resizable=no,width=650,height=700");
    }
    else{

    }
}



$('#divmsg').html($(".ui-selected").length + " box selected")

              $('#divmsg2').html($(".ui-selected").length)
            if ($(".ui-selected").length &gt; 90) {
               alert("Selection of only 90 boxes allowed");
                $('#divmsg').html($('#divmsg').html() + ",&lt;br&gt;&lt;b&gt;Message: Selection of only 90 pixels allowed!!&lt;/b&gt;");
                $(".ui-selected").each(function(i, e) {                  
                    if (i &gt; 3) {

                        $(this).removeClass("ui-selected");
                    }
                });
                return;
            }

            $(".ui-selected", this).each(function() {
                var cabbage = this.id + ', ';
                result.append(cabbage);
            });

            var newInputResult = $('#select-result').text();
            newInputResult = newInputResult.substring(0, newInputResult.length - 1);
            result2.val(newInputResult);
        }
    });
});
</code></pre>

<p>this is the fiddle
<a href="http://jsfiddle.net/dw6Hf/57/" rel="nofollow">http://jsfiddle.net/dw6Hf/57/</a></p>

<p>Thanks in advance
        ​</p>
