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

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -