title: Using Jquery to add items in Listbox from Textbox
body: <p>I am stuck somewhere using jquery to append the list box from a text box.</p>
  
  <p>here is my jquery</p>
  
  <pre><code>  $("#btnAddSvc").click(function () {
          var svc = $("#&lt;%= txtServiceName.ClientID %&gt;").val();  //Its Let you know the textbox's value   
          svc.appendTo("#&lt;%=lstSvcName.ClientID %&gt;");
      }); 
  </code></pre>
  
  <p>I am using asp.net (c#) to develop my code</p>
  
  <pre><code>&lt;asp:Button ID="btnAddSvc" runat="server" Text="&gt;&gt;" Font-Size="Medium" /&gt;
  &lt;asp:ListBox ID="lstSvcName" runat="server" SelectionMode="Multiple" ToolTip="Selected Service Names"
                  Width="169px"&gt;&lt;/asp:ListBox&gt;
  </code></pre>
  
  <p>can someone please help as i am not able to get the values in list box.</p>