Hi all,
How to get selected value in txtbox ?
HTML
<asp:TextBox ID="txtProductName" runat="server" Width="80%" />
JS
<script type="text/javascript" language="javascript">
$(function () {
$('#<%= txtProductName.ClientID %>').autocomplete({
source: function (request, response) {
$.ajax({
url: "GetProductService.asmx/GetProductName",
data: "{'ProductName': '" + request.term + "'}",
type: "POST",
dataType: "json",
contentType: "application/json;charset=utf-8",
success: function (data) {
response(data.d);
...
Go to the complete details ...