Testowanie funkcji modyfikujących zawartość strony

Tu zostanie wstawiona nowa zawartość

Kod HTML przed:

<div id="message"><p>New content will go here</p></div>

Kod HTML za:

Kod zastępujący

.text()

$('#message').text();

.html()

$('#message').html();

.append()

$('#message').append();

.prepend()

$('#message').prepend();

.after()

$('#message').after();

.before()

$('#message').before();

.replaceWith()

$('#message').replaceWith();

.remove()

$('#message').remove();

.empty()

$('#message').empty();

+

Testy

Zasoby związane z jQuery