javascript - What is the opposite of append in jquery? -


i use $('.posts').append('test') add 'test' last element in posts div. how can make first element?

use .prepend() like

$('.posts').prepend('test'); 

try link


Comments

Popular posts from this blog

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -

c++ - importing crypto++ in QT application and occurring linker errors? -