besonic Posted May 21, 2009 Report Share Posted May 21, 2009 Vajaga tadu scriptinu ko iemaukt ieksha man ir viena aile un otra aile , bet ka lai uztaisa ta lai nevar submit ja vini abi sakrit analogiski? piemers ta ka ieraksti divos laucinos parole, bet vinjs tevi nelaizh talak kamer nav ievadits abi vinadi, bet man vajaga tishi otradi nelaizh prom kamer nav ievadits divi analogiski, ceru ka sapratat thx ieprieksh Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted May 21, 2009 Report Share Posted May 21, 2009 eventuali.. submitPoga.disabled = aile1.value == aile2.value; Quote Link to comment Share on other sites More sharing options...
besonic Posted May 21, 2009 Author Report Share Posted May 21, 2009 bet ka ir ta ielikt kad izmet disabled lodzinju, ja vini meigina ievadit abos laucinos vienadus Quote Link to comment Share on other sites More sharing options...
besonic Posted May 21, 2009 Author Report Share Posted May 21, 2009 un kas ir tas ''submitPoga", kura dalja tieshi no pashas pogas taa ir Quote Link to comment Share on other sites More sharing options...
kechums Posted May 21, 2009 Report Share Posted May 21, 2009 name="submitPoga" ? Quote Link to comment Share on other sites More sharing options...
besonic Posted May 21, 2009 Author Report Share Posted May 21, 2009 bet kaa lai uztaisa taa, ka kad ir vienadi aizpilditi tie laucinji, izlec kkads pazinjojums, ka jabut savadakam Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 21, 2009 Report Share Posted May 21, 2009 Kaut kā šādi: ... <form method="post" action="lapa_kura_sanem_datus.php" onsubmit="if(document.getElementById('lauks1').value == document.getElementById('lauks2').value){ alert('Lauki nedrīkst būt vienādi'); return false;}"> ... <input type="text" name="lauks1" id="lauks1"/><br/> <input type="text" name="lauks2" id="lauks2"/><br/> ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.