thanks, Hector, your answer helped with what I'm trying to do now.
On Nov 17 2008, 1:49 pm, "Hector Virgen" 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).parents('tr').hide();
>
> });
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:
http://www.nabble.com/attaching-hide%28%29-to-delete-confirmation-
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 th
3 matches
Mail list logo