Using jQuery, what\'s the performance difference between using:
$(\'#somDiv\').empty().append(\'text To Insert\')
and
$(\'
Understand the meaning and functions of the extensions provided in jQuery.
$('#somDiv').empty().append('text To Insert')
-- Above code will clear the div id tag content first then will append the text to the target div:
$('#somDiv').html('text To Insert')
-- Above code replace the div tag text with the html text: