Image Image Image Image Image

© Copyright 2012 ABCoder | Email | RSS

Scroll to Top

To Top

jQuery

13

Aug
2010

6 Comments

In jQuery

By

jQuery pushStack Sortable Tables

On 13, Aug 2010 | 6 Comments | In jQuery | By

pushStack() is a very useful function to handle the jQuery stack. $.pushStack( elements, name, arguments ) is very handy when you need to apply a method on the array of DOM elements. Recently I was doing some experiment on pushStack to create a sortable table. You can see it in action here. The source code is self-explanatory. (In fact I’m very busy right now to explain it. lol)

Tags | , , , , , , ,

Comments

  1. escobar

    Good job, this is what i was looking for. Sadly, the code is buggy. Sorting isn’t correct. I noticed that it skips the last row in first comparison stage.

  2. escobar

    Solution, change:

    return ASC ? aV > bV : aV bV ? 1:-1;
    else
    return aV < bV ? 1:-1;

  3. wpolscemamymocneseo

    You got a really useful blog. I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

  4. Thanks for information, I find your blog from google. Now I will visit you everyday.

  5. Thanx for the blog. I really liked your work. Your blog is short and sweet. The use of points instead of lengthy literature was a good step. I love to see your space for interesting topics and latest inforamtions. Its great to know it all by reading at one single place. I follow your blog personally and I have also suggested it to some of my friends. Keep it up.

  6. Let me personally just express Whoa, how much of an extremely instruction and data post/guide. As being a newbie, this kind of report is accurately what I want. And, I like the analogy concerning book and weblog. It will work so effectively. I had certainly not thought of your blog like a serial, however it is! I will read through this informative article around various occasions. Many thanks a lot for sharing with us.

Submit a Comment