I used the following jQuery example which works like a charm. However it appends the results. What do I need to change to replace the results instead of appending?
+2
A:
Just change
$('#results').append(myHtml);
to
$('#results').html(myHtml);
Greg
2009-11-04 17:04:31
+3
A:
you could empty the element before you append
$("#results").empty().append(myHtml);
or use the html
method
$("#results").html(myHtml)
Marek Karbarz
2009-11-04 17:04:34