on for you:
>
> $(this).parents('tr').highlightFade(...
>
> Cheers,
> Adam
argh! Sorry, I didn't see this email before sending mine. My dumb
email app didn't thread the messages right, again.
Adam's solution above should work
so:
$(this).parents('tr:first').highlightFade...
Let me know if that doesn't work for you.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 30, 2007, at 8:09 AM, Bruce MacKay wrote:
Thanks Adam,
That's certainly closer, but it
ave jQuery. :)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 29, 2007, at 2:52 PM, Richard Thomas wrote:
Sorry I don't know the xpath/selectors that well yet.
I "had" problems with just the show and hide in the past, so I had to
use custo
using .show() and .hide() isn't a problem.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
ed
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 wr
If it's the third column, you could also try this:
$('td:nth-child(3)').hide()
If you have s in your table and need to hide them, too, you can
do this:
$('td:nth-child(3), th:nth-child(3)').hide()
--Karl
_____
Karl Swedberg
www.englishrules.com
www.lea
x27;m probably not explaining this well, so I'll just say that you will
have more success using .appendTo(). Depending on how your DOM is
structured, you might want to first create a container div after the
h2 and then append your $(html) to that.
--Karl
_
Kar
! Thanks for that information!
This is something I'll have to remember for the next dinner
conversation with friends. You never know where Noam Chomsky[1] might
pop up in a conversation. :)
--Karl
[1] http://en.wikipedia.org/wiki/Chomsky
_
Karl Swedberg
www.englishrule
You might also be able to reduce this a bit, depending on your markup:
$('a.selected').parents('div.linkSubMenu').show();
It seems a shame to traverse all the way down that set of nodes, only
to have to traverse back up.
--Karl
_____
Karl Swedberg
should
help Rails developers transition to jQuery quite easily.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
gives me the green light.
Also, about the publication date. Right now all I can say is this
summer. But this should start firming up soon, too, and I'll report
more when I know more.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 26, 2007,
Calling Jake! Calling Ⓙⓐⓚⓔ! Come in, ʝǡǩȩ.
ᎫᎪᏦᎬ, someone needs your help.
:-)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 26, 2007, at 8:34 AM, amircx wrote:
my db and the page saved as utf-8...
its returns me in textfield values of
'E').children(':eq(n)')
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 26, 2007, at 8:28 AM, MARIO MOURA wrote:
Thanks Karl
I tried but didnt work (I made a lot of variations)
but this is working fine:
$("#imagefi
On Mar 26, 2007, at 4:17 AM, agent2026 wrote:
>
> Hi Karl,
>
> Could you provide links to these posts? Haven't read them myself,
> and I
> can't seem to find them.
>
> Adam
>
>
>
> Karl Swedberg-2 wrote:
>>
>> In fact, if you read the
Karl Swedberg schrieb:
When that jQuery book comes out, I hear it's going to have an awesome
Appendix dealing with closures. ;-)
No way!!
--
Jörn Zaefferer
Yep, it's true, Jörn! Jonathan Chaffer wrote it. I read it. Then I
said, "Wow, that's an awesome Appendix d
7;t have
it threaded with the the replies and I thought nobody had answered yet).
You're almost there. You just need to put the quotation marks around
the pseudo-class as well. So, this should work:
$("#imagefields").append( $(".group-image:nth-child(2)") );
y.com/DOM/Traversing
Also, I wrote a couple entries on learningjquery.com that might help:
http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-
part-1
http://www.learningjquery.com/2006/12/how-to-get-anything-you-want-
part-2
Hope that helps.
--Karl
___
When that jQuery book comes out, I hear it's going to have an awesome
Appendix dealing with closures. ;-)
--Karl
p.s. Look for more book details coming soon (hint, hint)
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 23, 2007, at 1:22 PM, Nathan
Hi Nate,
Give this one a shot:
$('li').each(function(index){
if($(this).is('.selected')) {
alert(index+1);
};
});
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 23, 2007, at 1:41 PM, Nate Cavanaugh wrote:
Hi all,
Yeah, Glen is the one who wrote that. It's not in plugin form,
though. I think that's the part that Glen was saying he didn't know
how to do.
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 23, 2007, at 2:04 AM, Allan Mullan wr
t; the side I mightbe able to see it again. Use % to offset the div
> and you
> should be fine.
>
> Rob
Just to be safe, you might want to hide the div after you've animated
it out of the viewable area.
Putting $(this).hide
is made, the event handler never has to be re-bound.
However, the event context is now wrong, so we compensate for this by
checking what the event's target attribute is. If the target is of
the right type, we perform our normal action; otherwise, we do
nothing.
--Karl
_
Karl S
ide and show without animation whether we
use fade in/out or slide down/up.
I'll try to submit a bug report later today.
Thanks a lot for noting those things!
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 17, 2007, at 9:51 PM, Kush Murod wro
/jquery.js
http://test.learningjquery.com/scripts/jquery.lite.js
http://test.learningjquery.com/scripts/jquery.pack.js
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 17, 2007, at 7:36 PM, Kush Murod wrote:
Hi Karl,
Your idea is great workaround, I hav
(2)').show().fadeIn('slow');
to hide and show the third table row.
Also, you may find the solution in this thread helpful as well for
doing the slide:
http://www.nabble.com/Hiding-and-showing-table-rows-
tf2585537.html#a7208756
--Karl
_
Karl Swedberg
www.englis
t. Unless, of course, I've
misunderstood your question, which is entirely possible.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
and on the mac side, TextMate has a subversion bundle built right in.
It's a beautiful thing.
http://macromates.com
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 15, 2007, at 10:26 AM, Aaron Heimlich wrote:
On 3/15/07, agent2026 &l
t: -em.
Cheers,
p.s. when José writes...
the search of the sexual offenders in the maps, simply genial
... I'm sure this is a simple (Freudian?) slip of the translation
dictionary, but I think a better translation would be "simply
genital." :-)
--Karl
__
ffect might be one of the tooltip
plugins:
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
http://www.dave-cohen.com/node/1186
http://www.learningjquery.com/2006/10/updated-plugin-jtip
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquer
ously as you resize. Can't remember which does which.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
recommend using the form plugin. Its primary function is to
provide ajax capabilities. I'd be glad to help if you found it
confusing or if you have questions about it.
I second that recommendation! The form plugin makes ajax form
submission astonishingly easy.
--Karl
_
ny elements that are grandchildren (or great-
grandchildren, etc.) of the .
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 14, 2007, at 11:10 AM, Andy Matthews wrote:
Use the descendant selector.
Div ul li
Vs
Div ul > li
The > says only the fi
hurt. :)
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
more important than
"expertise," for developers at least, are intelligence and
creativity. And from everything I've seen from you on this list, your
blog, and your plugins, you have a lot of both. :-)
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learning
Sure thing. You can get at the separate offsets (top and left) like so:
$('#my-id').offset().top;
$('#my-id').offset().left;
I hope that's what you were looking for. If not, let me know.
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.c
Hi Rolf,
By far the easiest way to do that is to use the Dimensions plugin. It
is amazingly accurate, even taking into account borders, padding,
overflow:scroll, etc.
http://docs.jquery.com/Plugins
The inline documentation is quite helpful as well.
--Karl
_
Karl Swedberg
#x27;t be of more
help.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 12, 2007, at 11:11 PM, Daemach wrote:
Thanks Karl -
That suggestion works for applying an attribute to an entire column
of a
table, but I need to apply a custom selector w
Hi Charles,
This bug has been fixed. If you download a nightly build, it should
work fine using .attr('href')
http://docs.jquery.com/Downloading_jQuery#Nightly_Builds
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 12, 2007, at 7:54 P
Dave Methvin answered this question back in October and then again in
February:
http://www.nabble.com/Re%3A-highlight-table-column-on-hover-
p7074977.html
Hope that helps.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 12, 2007, at 3:40 PM
om/2006/09/slicker-show-and-hide
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Abel, send me the files and I'll post them at http://
test.learningjquery.com so that people here can have a go at them.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 9, 2007, at 5:02 AM, Abel Tamayo wrote:
The problem is that I don't h
Hi Paul,
This should do it:
$('[EMAIL PROTECTED]')
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 6, 2007, at 1:34 PM, Paul wrote:
This is probably easy, but it’s my first attempt so I’m not sure
where to begin…
I have a series
his).width() > 250) {
$(this).css('width', '250px');
}
});
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 6, 2007, at 10:54 PM, Alp Guneysel wrote:
wow, that was stupid of me...
thanks.
On 3/7/07, Chris Domig
there. His version looks much prettier than mine. :) Look
at the bottom right box:
http://glenlipka.kokopop.com/jQuery/intuit.com/
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 5, 2007, at 5:56 PM, {js}sTyler wrote:
Hi All,
Anyone have any tips fo
element whose "foo" attribute value ends
exactly with the string "bar"
* [EMAIL PROTECTED] an E element whose "foo" attribute value
contains the substring "bar"
So, in your case, you could do something like this:
$('[EMAIL PROTECTED]', this)
Thanks for the clarification, John!
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 5, 2007, at 10:55 AM, John Resig wrote:
.one() is not deprecated. With 1.1 we simply have an alternative to
.one() using the .unbind() function (allowing the event
{
$(this).next('div.answer').slideToggle('fast');
});
});
I used .slideToggle('fast') because I like the way it looks, but you
could replace that with a regular .toggle()
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On
sed to having .hasClass(), but I really love
the flexibility of .is().
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 4, 2007, at 10:07 AM, Sébastien Pierre wrote:
Hi,
This is not very obvious, and I guess some people won't notice that
&q
Hey Yehuda,
.one('event',fn) has not been deprecated, as far as I know. Only the
individual .oneEvent(fn) methods have.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 4, 2007, at 8:21 AM, Yehuda Katz wrote:
one has been deprecated
l(stuff)
.animate({opacity: 1}, 2000).slideDown("slow");
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
ce plugin suite (and ifx.js in particular):
http://interface.eyecon.ro
http://interface.eyecon.ro/docs/animate
Also, you don't need to add the easing parameter if you want it to be
the default, "linear."
--Karl
_
Karl Swedberg
www.englishrules.com
www.lear
Hi Dan,
jQuery doesn't support the ":nth-child(an + b)", only ":nth-child(n)"
To select every odd item except the first two items, try this instead:
$('#search-results div:nth-child("odd"):gt(0)')
--Karl
_
Karl Swedberg
www.engl
().append(o.el).filter(o.id).html(c);
});
}
$("p").wrapInner({el: 'http://jquery.com";>', id: 'a'});
Before:
I will become a link to jQuery.com
After:
http://jquery.com";>I will become a link to jQuery.coma>
--Karl
_
Karl Swe
tatic" has
taken on new meaning for me. :)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 27, 2007, at 12:49 AM, Karl Rudd wrote:
Make sure the element you're trying to move (the "div" in this case)
has either "position: relativ
that works for me. Thanks, Kenneth!
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 23, 2007, at 1:22 AM, Kenneth wrote:
Greetings all,
I have modified the neat GreaseMonkey script by Paul Bakaus. I have
removed the 2 remote calls made by the
Yes, thanks, Stefan. And I hope I didn't cause any confusion, either!
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 22, 2007, at 5:33 PM, Brandon Aaron wrote:
Oh okay. Thanks for clearing that up. Hope I didn't cause any
Hi Jim,
this bug has been fixed in the jQuery core (post 1.1.1). You can get
a copy of the most recent nightly build here:
http://docs.jquery.com/Downloading_jQuery#Nightly_Builds
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 22, 2007, at 3:02
Try this:
$('div.sidebarToDo:last')
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 22, 2007, at 12:07 PM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Hello,
I have a main div, with id= "todoList", and wi
d of $.text(item) in the append string, just use
item. So:
$(this).parents("div.sidebarToDo").find("td.sidebarText").empty
().append("\" value=\"" + item + "\">");
--Karl
_
Karl Swedberg
www.englishrules.com
www.lea
quot; because I'm kind of dense, and it
helps to remind me what it is).
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 21, 2007, at 3:11 PM, john smith wrote:
Sorry all Im still a newb to jquery. Ive been messing around with
using jquery for gr
arents("div.sidebarToDo")[0].id + " id:" + divId);
$(this).click = function() { $('#' + divId).remove(); };
});
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 21, 2007, at 11:16 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrot
Even though your email message is blank, I'm going to go out on a
limb here and suggest using $('selector').each(index) {}; for the loop.
Cheers,
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 21, 2007, at 8:48 AM,
d set
of elements. For them to use the animation, a parameter must be
inlcluded.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 21, 2007, at 7:01 AM, Gorkfu wrote:
Thx, that does clean it up a lot. =)
As for normal being default for show and hide, I
ethod works, please post the
solution to the list! :)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 11:25 PM, rolfsf wrote:
Is there a way around that? Can you get simple animation to work on
table
rows? I can live with a simple
Rolf, I think the strange results occur in Firefox because it wants
all elements to have display:table-row but the .slideX()
and .show/hide(speed), etc. methods use display:block
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 9:09
On Feb 20, 2007, at 6:46 PM, Blair Mitchelmore wrote:
$(this).parent("div");
-blair
Blair,
You'll need to add an "s" to ".parent" to make that work.
$(this).parents('div');
That will work if you don't have nested DIVs.
--Karl
__
Hi Dave,
Not sure if this has been answered yet, but here is how I would do it:
$(this).parents('#inner')
Or, if you don't know what the DIV will be called, you could try it
this way:
$(this).parents('div:eq(0)')
--Karl
_____
Karl Swed
').hide() line hides all of the elements when
the DOM is ready.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 12:10 PM, Rick Faircloth wrote:
Hi, all…
When I try this…
$(document).ready(function() {
$('dt.toggle').cs
Thanks again for weighing in, Sam!
Your suggestion makes more sense, since it "degrades" better.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 9:21 AM, Sam Collett wrote:
On 20/02/07, Karl Swedberg <[EMAIL PROT
rks around the selector for
the :not pseudo-class.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 9:19 AM, agent2026 wrote:
Hi all,
I want to select all line items without child a tags with a class
of 'on'.
I can s
Heh. When you find an answer, let me know, because it happens to me
all the time. :)
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
Bruce
At 10:50 p.m. 20/02/2007, you wrote:
Hi folks,
I have a simple faq application with the questi
my
most recent tutorial:
http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-
anything
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 2:31 AM, fatjoez wrote:
>
> Hey.
>
> Dont worry about my cod
excellent! thanks, Larry. that's sure a long list of sites to wade
through. should be fun checking them out.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 19, 2007, at 10:41 PM, Larry Garfield wrote:
Oh yes, there's a whole forum fo
Hey there, I'm having a hard time following your HTML because it
looks like something (Nabble?) is stripping out your tags. Maybe
you could try using character entities instead (< and >) ?
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On F
ocument).ready(function() {
$('#Menu ul').hide();
$('#Menu h3 > a').click(function() {
$(this).parent().next('ul').slideToggle('fast');
return false;
});
});
Hope that helps.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
one more thing...
You might find my tutorial at learningjquery.com helpful:
http://www.learningjquery.com/2007/02/more-showing-more-hiding
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 19, 2007, at 8:22 PM, fatjoez wrote:
hmm. for now i
preceded with a space or a tagname.
>
>> would only select the following element:
>>
>>
>>
>>
>> -- Klaus
>>
Of course, the CSS parser for IE 6 has a terrible time dealing with
references to #id.class {} and .class1.class2 {}.
It ignores #id and .cl
t || $("[EMAIL PROTECTED]" +
this.hash.slice(1) +']');
if (target.size()) {
target.ScrollTo(400);
return false;
}
});
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
-Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 19, 2007, at 7:15 AM, Gerry Tucker wrote:
Hi all,
Would it be better on the plugins page if all authors could add an
update date so it's obvious if/when a plugin has been updated?
Currently I'm b
Even better! Thanks, Klaus!
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 18, 2007, at 10:05 AM, Klaus Hartl wrote:
Are you aware of the pathname and host properties? If you use it, you
can cut down the code further:
$('[EMAIL PROT
orks and slice it up the
hard way.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On Feb 17, 2007, at 4:36 PM, Joel Birch wrote:
> On 18/02/2007, at 6:13 AM, Karl Swedberg wrote:
>> ok, now that the smooth scrolling has Klaus's blessing :) ... I
>> thought I'd share some code I wrote to make it happen for all same-
>> page links. It takes into ac
return false;
} else {
$linkDest = $("[EMAIL PROTECTED]" + linkHash.slice(1) +']');
if ($linkDest.length > 0) {
$linkDest.ScrollTo(400);
return false;
}
}
}
});
Hope that's helpful to
Hey Toby,
Nice site!
I wrote an entry on Learning jQuery about blurring links:
http://www.learningjquery.com/2006/10/quick-tip-blur-links
Hope that helps.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 17, 2007, at 12:15 PM, Toby wrote:
I really
ite, it
looks through the main content area to see if there is more than one
element. If so, it builds a page-content list based on those,
and links to each one. If not, it tries to find more than one
element (which is what I use for the tutorial subheadings) and uses
those for its p
uch better than the
default "quick jump" because of the "disorienting sudden change" that
you mention.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
he alert read "parent1"
When I clicked the second, the alert read "parent2"
If that isn't what you're expecting, maybe I'm misunderstanding what
you're trying to do.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On F
uld be able to do it this way:
var parent = $(this).parents('div.parent');
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 15, 2007, at 11:01 AM, Mahadewa wrote:
Hi all,
I've got the following problem
Hi Matthew,
Not sure, haven't tried this, but the problem might be that you have
two slashes before xmlelement. Is the document root? If
so, try it with only one beginning slash:
$("/xmlelement")
--Karl
_____
Karl Swedberg
www.englishrules.com
www.learningj
Ahh, I just noticed you'll need to move the semicolon outside the
alert, too. Instead of...
$(this).click(function(){ alert(this.id;) });
do this...
$(this).click(function(){ alert(this.id); });
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquer
Hi Chris,
When you chain jQuery methods to "this", you need to encapsulate
"this" in the jQuery constructor -- $(). Try it this way, and see if
it works:
$(".MyButton").each(function(){
$(this).click(function(){ alert(this.id;) });
});
--Karl
_
hi Matthew,
there are a few ways to do this. Let's say, for example, you're
trying to get the 4th div with class="myclass":
$('div.myclass:eq(3)')
$('div.myclass:nth(3)')
$('div.myclass').eq(3)
All of those would do it.
Cheers,
--Karl
__
x27;slow', 'inline') ? Or would that require too
much code rewriting? Would have to consider the callback function too.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi Howard,
Not sure if this will solve your problem, but opacity values range
from 0 to 1, not 0 to 100. Try changing the value of your second
opacity to .999 or 1.0 and see if that works for you.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
NaN
parseInt("32px") returns 32
Heh. I was wondering about that. You saved me the trouble of having
to test it. :)
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
___
jQuery mailing list
discus
cument).ready(function() {
$('#wrapper p').hide()
$('#wrapper h2')
.filter(':even')
.css('backgroundColor', '#ef')
.end()
.filter(':odd')
.css('backgroundColor', '#ef')
.end()
.css({c
in them:
http://test.learningjquery.com/scripts/jquery.js
http://test.learningjquery.com/scripts/jquery.lite.js
http://test.learningjquery.com/scripts/jquery.pack.js
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 13, 2007, at 7:16 AM, Seb
Right on the home page, looks like they've got some nice jQuery tabs
going (TurboTax, QuickBooks, Quicken) and there's a Quick Links
slideDown() at the top. Very cool, Glen! Glad to see it up there.
Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learning
x27;olive'
},
'slow'
);
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 9, 2007, at 5:37 AM, Mahadewa wrote:
Hi guys,
I was wondering if anybody could help with this. I am trying to do
animate
on the backgound-color
D'oh! Why not indeed!
Thanks, Christof. :)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 11, 2007, at 3:22 PM, Christof Donat wrote:
Hi,
You could also use one of the attribute selectors to filter a set of
matched elements. If you don
1 - 100 of 386 matches
Mail list logo