glad I could help. :)
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 2, 2007, at 4:14 PM, Christopher Jordan wrote:
Yeah I knew it was the attribute selection that was XPath. Thanks
for the link, too! :o)
BTW, Karl. Your solution worked great!
Cheers,
Chris
Felix Geisendörfer wrote:
The attribute selection is XPath style, which is part of jQuery's
'supported, but different' CSS selectors:
http://jquery.com/docs/Base/Expression/CSS/#Supportedbutdifferent
-- Felix Geisendörfer aka the_undefined
--------------------------
http://www.thinkingphp.org
http://www.fg-webdesign.de
Christopher Jordan wrote:
Thanks Karl. That's XPath notation, right? I've got to pick some
of that up. I know next to nothing about it. There seems to be a
problem with the example I gave in my original post, so I'm going
to give your solution a shot. I'll let you know how it goes. Thanks!
Cheers,
Chris
Karl Swedberg wrote:
Hi Christopher,
I think you can get away with using an attribute selector on the
td:
$('[EMAIL PROTECTED]').each(function() {
//do whatever it is you're going to do...
});
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 2, 2007, at 3:30 PM, Christopher Jordan wrote:
Hi folks,
I've got a page with a table and various tds that look
something like this:
<td
id = "SomeUniqueID"
class = "someClass"
originalColor = "someColor"
state = "Enabled"
status = "off"
preferred = "Yes"
dateValue = "someDateValue"
></td>
In some cases the status is set to "on" and in others it's left
as "off". I'd like to be able to get the dateValue that is
associated with each td that has a status of "on".
Is there a better way to do that than this:
$("td).attr("status").each(function(){
if(this.status == "on"){
//do whatever it is i'm going to do...
}
});
I'm thinkin' this might be it, but thought I'd check with the
group to see if maybe there was a more super-cool way to
accomplish this. :o)
Thanks,
Chris
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/