I used $('body').append('MY HTML elements') , but this code adds these elements to the end of the body, I want to add as the first element inside the body.
$('body').append('MY HTML elements')
How to do it using jQuery?
You use the prepend function:
prepend
$('body').prepend('My HTML elements');
Source: https://habr.com/ru/post/1286745/More articles:Should different servers translate unix timestamps as different dates? - dateCan someone explain the conversion from a byte array to a sixth string? - javaWord vba - if the cursor is in a cell / bookmark - startup code - vbaHow to get current user id for VPN user in windows forms application? - c #Creating a stored procedure Syntax regarding the use of GO - sqlHow to create a scheduled singleton job in oracle? - sqlhow to open a new window through javascript when a popup is blocked - javascriptHow to get Vista storyteller to read my Swing components to me? - java"Regular expression" -style replaced in XSLT 1.0 - xsltSupport for custom dictionaries WPF TextBox - dictionaryAll Articles