Tema: JS neveikia
Autorius: tobias
Data: 2009-02-19 11:02:25
xebryte

kodel neveikia JS? alertas atsiranda bet nedaro submit
aciu

function delete_item(formId,record_title)
{

if ( confirm("Ar tikrai norite pasalinti irasa\n" + record_title + " ? "))
{
    document.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>