[jQuery] removing elements from array ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.2666" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2>I run the
command:</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2> $('input').each(function(i){<BR> $('#logger').append(this
+ " is the Element, " + i + " is the Position "+this.name+"<br
/>\n");<BR> });</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2>which will return
all input elements, however i want to remove all hidden input elements .. so i
tryed this command:</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2> $('input').not('input[@type=hidden]').each(function(i){<BR> $('#logger').append(this
+ " is the Element, " + i + " is the Position "+this.name+"<br
/>\n");<BR> });<BR></FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2>which doesn't work,
all input elements are now removed ..</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2>however:</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2> $('input').filter('input[@type=hidden]').each(function(i){<BR> $('#logger').append(this
+ " is the Element, " + i + " is the Position "+this.name+"<br
/>\n");<BR> });<BR></FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2>only keeps my hidden
input elements..</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2>I thought .not() was
the opposite of .filter() in functionality?</FONT></SPAN></DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=654034614-19072006><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT></SPAN>
<BR>
This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html<BR>
</BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/