thanks, Hector, your answer helped with what I'm trying to do now.
On Nov 17 2008, 1:49 pm, Hector Virgen djvir...@gmail.com wrote:
If the link is within the row, you can use jQuery#parents to find the row,
without using the ID.
$('a.delete').click(function()
{
This is what I ended up with:
$('a.delete').click(function()
{
var msg = 'Are you sure?';
if (confirm(msg)) {
$(this).parents('tr').hide();
} else {
return false;
}
--
View this message in context:
If the link is within the row, you can use jQuery#parents to find the row,
without using the ID.
$('a.delete').click(function()
{
$(this).parents('tr').hide();
});
I'm not sure what .confirm() is at the end your script, but if you want to
use the native javascript confirm you can do it like
3 matches
Mail list logo