Quote:
Originally Posted by esthera
sometimes when running
$.ajax({
url: urltoajax,
cache: false,
success: function(html) {
$("#formfields").html(html);
}
});
in jquery from a link
meaning i call my javascript function on click of the link - instead of replacing the div it ads a new one with the new content
it should replace the div called #formfields
|
put your code between [ code] and [ /code] tags, please.
try this way:
Code:
$.ajax({
url: urltoajax,
cache: false,
success: function(data) {
$("#formfields").replace(data);
}
});
best regards