Testowanie wybranych funkcji biblioteki jQuery
Polecenie jQuery
Tu pojawi się polecenie jQuery.
To miejsce na nowy kod
Pierwotny kod HTML:
<div id="message"><p>To miejsce na nowy kod</p></div>
Nowy kod HTML:
.text()
$('#message').text();
Uruchom
.html()
$('#message').html();
Uruchom
.append()
$('#message').append();
Uruchom
.prepend()
$('#message').prepend();
Uruchom
.after()
$('#message').after();
Uruchom
.before()
$('#message').before();
Uruchom
.replaceWith()
$('#message').replaceWith();
Uruchom
.remove()
$('#message').remove();
Uruchom
.empty()
$('#message').empty();
Uruchom