What the difference between text() and html() functions in jQuery ?
$(\"#div\").html(\'Linkhello\
I think that the difference is to insert html tag
in text()
you html tag do not functions
$('#output').html('You are registered'+'
' +' '
+ 'Mister'+' ' + name+' ' + sourname ); }
output :
You are registered
Mister name sourname
replacing text()
with html()
output
You are registered
Mister name sourname
then the tag
works in html()