Thanks Ricardo, looks good.
On Dec 3, 10:14 am, ricardobeat <[EMAIL PROTECTED]> wrote:
> Or pError.filter(':visible').
>
> By using 'pError' as a context, you are looking for it's children, not
> the elements themselves.
>
> - ricardo
>
> On Dec 3, 1:17 pm, Liam Potter <[EMAIL PROTECTED]> wrote:
Liam,
Right, but that defeats the point of "caching" the jQuery object that
was created by:
var pError = $('p.error');
Since I'm just calling it again with a different selector, namely,
the :visible one.
On Dec 3, 9:17 am, Liam Potter <[EMAIL PROTECTED]> wrote:
> it would be this
>
> $('p.erro
Or pError.filter(':visible').
By using 'pError' as a context, you are looking for it's children, not
the elements themselves.
- ricardo
On Dec 3, 1:17 pm, Liam Potter <[EMAIL PROTECTED]> wrote:
> it would be this
>
> $('p.error:visible')
>
> Joe wrote:
> > If I have the following:
>
> > var pEr
it would be this
$('p.error:visible')
Joe wrote:
If I have the following:
var pError = $('p.error');
Then I can do the following with no problem:
pError.text('lorem");
Yet, I want to check for the paragraphs that have the class "error"
that are visible, I would think it is something like t
Behalf Of Karl Swedberg
Sent: Monday, April 09, 2007 3:55 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Simple selector question
On Apr 9, 2007, at 4:31 PM, Geoffrey Knutzen wrote:
Again,
Press send, find answer.
I answered my own question
$("table").css("
On Apr 9, 2007, at 4:31 PM, Geoffrey Knutzen wrote:
Again,
Press send, find answer.
I answered my own question
$("table").css("borderCollapse","collapse")
I had led myself down the wrong path and was totally lost
Thanks anyway
Hi Geoff,
that's fine if you want to *set* the borderCollap
Again,
Press send, find answer.
I answered my own question
$("table").css("borderCollapse","collapse")
I had led myself down the wrong path and was totally lost
Thanks anyway
-Original Message-
From: Geoffrey Knutzen [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 1:27
You could also use filter to get a jQuery object of the tables that
have borderCollapse == collapse.
var $tables = $('table').filter(function() {
return $(this).css('borderCollapse') == 'collapse';
});
Now you can run any jQuery methods you might need on this result set.
That is if you need to
Hi Geoff,
You should be able to loop through he tables with .each() and see if
they have the css property border-collpase set to "collapse" and if
so, do something. The following should work -- inside a $
(document).ready(), of course:
$('table').each(function() {
if ($(this).css('border
$('table').attr('css','border-collapse')
Maybe?
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey Knutzen
Sent: Monday, April 09, 2007 3:27 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Simple selector question
How would one sel
10 matches
Mail list logo