[jQuery] Re: Target specific ul list items for css

2009-07-01 Thread Paul Witschger
http://docs.jquery.com/Selectors/nthChild also works. James wrote: http://docs.jquery.com/Selectors/eq On Jul 1, 3:10 pm, Wacko Jacko jackson.be...@gmail.com wrote: How would I target (with jQuery or normal javascript) the 5th and 6th li in an unsorted list for styling? I need to change

[jQuery] only one allowed at a time

2009-06-24 Thread Paul Witschger
I understood what you meant, and I actually thought about it beforehand, I'm just not familiar enough with jQuery to be confident in my assumptions. I appreciate your help in this. I couldn't seem to get what you offered to work. I just found it to be easier to leave the link in place whether

[jQuery] Re: selector, second to last row of table

2009-06-20 Thread Paul Witschger
from lots of .prev() and .next() calls without seeing the corresponding HTML mark-up. What inner DIV? What container? Moving a single row up should be as simple as $row.insertBefore ( $row.prev() ); http://snipt.org/kkpo On Jun 18, 10:37 pm, Paul Witschger tigerseyet...@gmail.com wrote: This code

[jQuery] Re: problems in IE (6, 7, and 8)

2009-06-20 Thread Paul Witschger
My apologies on the multiple threads. It just seemed that it got lost in the shuffle. OK, I fixed many of the errors from validator. Only one remains. Doing so seems to have fixed my IE issue (at least IE7). Here's the error that remains: [error] document type does not allow element

[jQuery] Re: selector, second to last row of table

2009-06-18 Thread Paul Witschger
This code seems to work great in FF and Safari, but IE seems to interact with it differently. [code] $('a.moveup').click(function(event) { var href = $(this).attr('href'); $.get(href); var $thisRow = $(this).parents('tr:first'); var $thisTable = $('#main_table');

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
Thank you, Karl!! Works excellent. Exactly what I needed! Karl Swedberg wrote: Assuming that the Move Up link is within the table row and that the link has a class of moveup, you could do something like this: $('a.moveup').click(function() { var $thisRow = $(this).parents('tr:first');

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
Move Down link if last row). Is there a way to check for this? Thanks John Bill wrote: good job! 2009/6/15 Paul Witschger tigerseyet...@gmail.com mailto:tigerseyet...@gmail.com Thank you, Karl!! Works excellent. Exactly what I needed! Karl Swedberg wrote: Assuming

[jQuery] Re: switching two table rows

2009-06-14 Thread Paul Witschger
about that. Use it as a starting point. --Karl Karl Swedberg www.englishrules.com http://www.englishrules.com www.learningjquery.com http://www.learningjquery.com On Jun 14, 2009, at 10:21 PM, Paul Witschger wrote: actually, there is one problem. I guess what I need is something