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

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 17  |  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. result = "<li class=\"singleResult\"><a href=\"/search/location/" + jsonObject[x].id + "\">" + jsonObject[x].venue_name + " " + jsonObject[x].address + " " + jsonObject[x].town +  " " + jsonObject[x].postcode + "</a></li>";
  2.                                                        
  3. result = result.replace(term, "<strong>" + term + "</strong>")
  4.                                                        
  5. $("#results").append(result);