javascript - Remove an element from find return -


with fallowing code want delete last element inside steps variable,

var steps = $(element).find("fieldset"); var count = steps.size(); steps[count-1] = null; 

but when iterate each method, doesn't seems see null value

steps.each(function(i) { }); 

you use not() create new jquery object removing elements don't want:

steps = steps.not(steps.last()); 

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -