เช่นมี tag p มี id= example_placeholder
Code: Select all
<p id="example_placeholder">Existing content that will be replaced.</p>
Code: Select all
$('#example_placeholder').html();
Code: Select all
$('#example_placeholder').html('This existing content has been replaced with this content.');
Code: Select all
$('#example_placeholder').append(' This text has been appended to the end.');