Don't like ads? PRO users don't see any ads ;-)
Guest

script.js

By: mbarros on Mar 27th, 2012  |  syntax: jQuery  |  size: 0.50 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $(document).ready(function() {
  2.         $('.autosuggest').keyup(function() {
  3.                 var search_term = $(this).attr('value');
  4.                
  5.                 $.post('./busca.php', {search_term:search_term}, function(data) {                      
  6.                                 var resultado_value = $(this).text();  
  7.                 });                    
  8.                                
  9.                 $.post('./busca2.php', {search_term:search_term}, function(data) {
  10.                         $('.mensagem').hide().fadeIn().html(data);
  11.                 });
  12.  
  13.                 $.post('./busca3.php', {search_term:search_term}, function(data) {
  14.                         $('.avatar').hide().fadeIn().html(data);
  15.                 });
  16.         });
  17. });