Re: [jQuery] Binding to multiple items with one call

2007-03-29 Thread Shelane Enos
Thanks, perfect.  I didn¹t see any examples of entering multiple items and
trying to do a search through the list wasn¹t coming up with what I needed.


On 3/29/07 9:49 AM, "Karl Swedberg" <[EMAIL PROTECTED]> wrote:

> I think you just have a couple extra single-quotes in there:
> 
>>  $j('#person', '#assigned').blur(function() { sendok=true;
>> alert(sendok);} );
> 
> the selector here is trying to get the #person element within the context of
> the #assigned  element. if you want to get both, you need to enclose them in
> the same set of quotation marks like this:
> 
>    $j('#person, #assigned').blur(function() { sendok=true;
>       alert(sendok);} );
> 
> 
> 
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
> 
> 
>  
> 
> On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote:
> 
>> This doesn't seem to be working:
>> bindBlur = function(){
>>         $j('#person', '#assigned').blur(function() { sendok=true;
>> alert(sendok);} );
>>     }
>> 
>> But this does:
>> 
>> bindBlur = function(){
>>         $j('#person').blur(function() { sendok=true; alert(sendok);} );
>>     }
>> 
>> 
>> Do I have to do them all individually or am I just putting those IDs in
>> incorrectly?
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>  
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Binding to multiple items with one call

2007-03-29 Thread Karl Swedberg

I think you just have a couple extra single-quotes in there:


$j('#person', '#assigned').blur(function() { sendok=true;
alert(sendok);} );


the selector here is trying to get the #person element within the  
context of the #assigned  element. if you want to get both, you need  
to enclose them in the same set of quotation marks like this:


   $j('#person, #assigned').blur(function() { sendok=true;
  alert(sendok);} );



--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Mar 29, 2007, at 12:22 PM, Shelane Enos wrote:


This doesn't seem to be working:
bindBlur = function(){
$j('#person', '#assigned').blur(function() { sendok=true;
alert(sendok);} );
}

But this does:

bindBlur = function(){
$j('#person').blur(function() { sendok=true; alert 
(sendok);} );

}


Do I have to do them all individually or am I just putting those  
IDs in

incorrectly?


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/