Hi, I'm just starting to use jQuery and, while I'm not much of a coder, I
love the way it works. I was developing a project using the Prototype
library, but after discovering jQuery I'm converting everything. I'm finding
it straightforward but I have a request for a clarification on something.
I
Thanks! I didn't know that existed, I assume it returns boolean. That's
great!
Cheers
On 1/14/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> function checkState(id) {
> if ($(id).className == "something") { etc
Use the "is" method:
$(id).is("something");
On 1/14/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
Is "id" an ID? If so, you could use $('#id.something') and chain
whatever methods you want onto it.
The code that sets the event and function call is:
$("#options").find("a").click(function(){checkState("#"+this.id)});
If there's a bett
I can pass 'this' but using ("#"+this.id) was the way to do it with the
least code written. Inside the function I need to check the first 4 letters
of the ID string of the calling element to determine how to proceed, as well
as use the id as an element reference for the jQuery object. So it's eith
There's no white page thing happening for me. It's smooth on the way down, a
bit jerky on the way up but I don't see the page turning white for a second.
Using XP and FF 2.0
m
On 1/14/07, speedabuser <[EMAIL PROTECTED]> wrote:
It does to me in Firefox 2.0 / WinXP!
Maybe flickering is the wr
Thanks, and I already took your advice :)
On 1/14/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
Just a bit clunky.
To me clunky is a overly long calling sequence this or this.id is easy to
pass.
"#"+this.id is more clunky
when you put the more clunky expressions inside a function you can
re-used 'pr
I like the new demo layout but it might be wise to put some initial content
in the demo window, pointing people to the links below.
Also, I got an error on the selectables demo. When I click serialise (XP and
FF2) it gives me,
Error: a.get(0) has no properties
Source File: http://interface.eyeco