What I'm trying to do is,
- always stick
class="new"div to the top of.insidediv when you scroll down. - When you click on new div, create new row inside (at the top of table not at the bottom like now)
What I'm trying to do is,
class="new" div to the top of .inside div when you
scroll down.Here is a fiddle of what you want to achieve. Use prependTo instead of appendTo and use position:absolute;top:0; for keeping it on the top
use prependTo() instead of appendTo() http://jsfiddle.net/uday99/5CxPr/20/
the code is too long to put here but here are key notes:
.prependTo()