Is there any sort of error shown by Firebug or Fiddler? or are you hoping for help on just "doesn't work"
On Jun 29, 7:18 am, bharani kumar <bharanikumariyer...@gmail.com> wrote: > Hi alll > > $(document).ready(function(){ > > $("#postcode").keyup(function(){ > var txtvalue = $("#postcode").val(); > alert(txtvalue) > $.ajax({ > method:"POST", > url: "data.php", > data:"txtvalue="+txtvalue, > dataType: "json", > success: function(data) { > // Go do this, go do that… > alert(data); > > }}); > }); > }); > > This is my code , > > data type:json not working , > > Please tell me Why? > > Thanks