Greetings.

I'm trying to get a list of forms from a DIV where the form's "done" input
is set to 1 or 0 .

Why does this code throw an error ("this.done.value has no properties") ?

   var myForms = $('.actionForm', myDiv).filter(function(){
      return this.done.value==1 ; 
   });
 
I can get the values like this:

   var myForms = $('.actionForm', myDiv);
  $( myForms ).each(function(){
     alert(this.done.value); //displays 1 or 0
   });

So I guess this depends on what the meaning of "this" is, eh?

Bruce



-- 
View this message in context: 
http://www.nabble.com/What-is-%22this%22-question%2C-this-one-about-filters-tf2973568.html#a8319669
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to