title: How can I pass javascript variable to jsp file liferay
body: <p>I want to pass my javascript variable to jsp file . How is it possible?
  Following is my code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function js_alert(selected){
  
      var selectText=selected.options[selected.selectedIndex].text;
      alert(selectText);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to pass selectText in following label</p>
  
  <pre><code>&lt;aui:input name="demo" label="???" type="text" id="demo" /&gt;
  </code></pre>
  
  <p>How is it possible in liferay?
  please help</p>
  
  <p>Thanks!!!</p>