esthera
03-10-2011, 07:07 PM
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
$.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