Does anyone know the jQuery equivalent for window.document.write('')
in javascript?
Thanks
This will add the string "hello" right before the body closing tag. Not exactly the behavior of write
, but you can do this to any element to get the content to appear where you want it.
$(document.body).append('hello');
Also available are prepend(content)
and replaceWith(content)
for all your insertion needs!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With