Artūras Šlajus wrote: > 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> >> >> O realiai tai tupas metodas, nes isjungus JS is vis neimanoma bus panaikinti Va geresnis sprendimas. Submit'a gali su css apsistylint kaip nori. <form method="POST" name="delete_1343" action="" onsubmit="return confirm("Ar tikrai norite pasalinti irasa\nFoobar?"> <input type="hidden" name="delete_item" value="1"> <input type="submit" value="Istrinti"> </form>