Tushar Gupta - curioustushar
- 57.2k
- 24
- 106
- 110
Set .text()
t.children("h2").text('new sample'));
If you want to set [.html()](http://api.jquery.com/html/) content
t.children("h2").html('new sample'));
Child Selector ("parent > child")
$('.content > h2').html('new sample');
Set .text()
t.children("h2").text('new sample'));
If you want to set [.html()](http://api.jquery.com/html/) content
t.children("h2").html('new sample'));
Set .text()
t.children("h2").text('new sample'));
If you want to set [.html()](http://api.jquery.com/html/) content
t.children("h2").html('new sample'));
Child Selector ("parent > child")
$('.content > h2').html('new sample');
Set .text()
t.children("h2").text('new sample'));
If you want to set [.html()](http://api.jquery.com/html/) content
t.children("h2").html('new sample'));
default