title: How to send dynamic comma separated string value in URL?
body: <p>I would like to send string containing comma separated values in url.</p>
  
  <p>After clicking on Add button i'm adding input text full name value to text area. 
  I want to send all the value added in text area which is separated by comma in url.</p>
  
  <pre><code> &lt;textarea name="txtAttendeeNames" id="txtAttendeeNames" rows="5" cols="38" class="txt" readonly=""&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>I created below url to pass values in url</p>
  
  <pre><code> http://shopping.com/app/site/backend/additemtocart.nl?c=TSTDRV945986&amp;n=1&amp;buyid=172,1,custcol_name_of_attendees|'+ document.getElementById('txtAttendeeNames').value+'|custcol_event_name|'+ document.getElementById('hdEventName').value+';
  </code></pre>
  
  <p>The problem is that text area field has values like value1,value2,value3. When i am adding document.getElementById('txtAttendeeNames').value in url it is separating value and i am not able to create url.</p>
  
  <p>Is there any other way i can pass these comma separated dynamic values in comma format?</p>