title: jquery output value pass to visualforce
body: <p>How to pass jquery value result into visualforce code for example:</p>
  
  <p>My jquery code is</p>
  
  <pre><code> $j('[id$=submit]').on("click", function(){
   var output = [], $jselects = $j(".container .row .span6 #form-details select"), i;
   for (i=0; i &lt; $jselects.length; i += 2)
      output.push($jselects.eq(i).find("option:selected").text() +
                  ":" + $jselects.eq(i+1).find("option:selected").text());
  })
  </code></pre>
  
  <p>When i click this id, the output values are generated like b:b,s:s,a:a This values are stroed in to variable as <code>output</code></p>
  
  <p>Here my visualforce code</p>
  
  <pre><code>&lt;apex:commandButton id="submit" action="{!myMethod}" value="Submit" styleClass="btn btn-primary" reRender="block"&gt;
    &lt;apex:param name="myParam" value="output"/&gt;
  &lt;/apex:commandButton&gt;
  </code></pre>
  
  <p>When I press the id <code>submit</code>, get the output value from jquery and it will be set in the  place of <code>output</code> in <code>&lt;apex:param name="myParam" value="output"/&gt;</code> this line.
  Here the output text are generated, but I need to know how send that value inside this <code>&lt;apex&gt;</code> code.</p>
  
  <p>Is it possible or not...?</p>
  
  <p>Appreciate for your answer...</p>