What exactly are you trying to achieve? It's hard to deduce anything
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
ok, go to http://www.hypertextwebdesign.com/admin,
click the button that shows up (placeholder for login form)
Click on Galleries on the menu on the left
What shows next is the main galleries page. Here the client can sort the
galleries how they want them to be sorted on their website, delete
Hi
just want to share my piece of code for getting out values of rows/
cells.
$('#myTableID tr:gt(1)').each(function(){
$(this).find('td').each(function(){
// get the cell text out with $.trim($(this).text());
});
});
hope that helps
Gerald
On Jun 17, 7:08 pm, theprodigy
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');
I think I have it working now. It does what it's supposed to, but
doesn't really seem to me that it would be all the effecient, should a
table have lots of rows (unlikely, but may happen).
Here is my code:
$('a.moveup').click(function(event) {
//Send request to server
var href
A couple quick examples that might help (there're many more ways):
console.log( $('table tr:last').prev() );
var trow = $('table tr');
console.log( $(trow[trow.length-2]) );
console.log( trow.eq(trow.length-2) );
Modify the selectors as needed for multiple/nested tables.
HTH
On Jun 16, 10:46
ok, I'm having a really tough time with this.
here's a part of my code (most of this Thanks to Karl, part thanks to
mkmanning, very little thanks to me, lol):
$('a.moveup').click(function(event) {
var $thisRow = $(this).parents('tr:first');
var $thisTable = $('#main_table');
On Jun 17, 3:46 am, theprodigy tigerseyet...@gmail.com wrote:
I've been trying for a while to alter the second to last row of a
table. I've tried several ways. The number of rows is dynamic so I
can't hard code a number into nth-child. I used $rowNeeded =
8 matches
Mail list logo