Onereetourf
New Member
I need to get the value of textbox as I type, and perform a function of JSON, I tried doing this:\[code\]$(document).ready(function () { $("#<%= txtBusca.ClientID %>").keypress(function () { $.ajax({ type: "POST", data: "{ 'valor' : '" + $(this).val() + "'}", url: "Especialidades.aspx/Buscar", contentType: "application/json; charset=utf-8", dataType: "json", success: function () { alert('OK'); } }) });});\[/code\]But it doesn't work.