Tema: Re: JS neveikia
Autorius: Artūras Šlajus
Data: 2009-02-19 11:37:02
tobias wrote:
function delete_item(formId,record_title)
{

if ( confirm("Ar tikrai norite pasalinti irasa\n" + record_title + " ? "))
{
     document.getElementById(formId).submit();
   }
}

> ***
> <form method="POST" name="delete_1343" id="delete_1343" action="">
>  <input type="hidden" name="delete_item" value="1">
>  <a href="javascript:delete_item('delete_1343','pavadinimas');">Istrinti</a>
>  </form>
> 
>