Artenis Posted July 21, 2008 Report Posted July 21, 2008 Doma tāda, ka ne tikai uz Click šitas nostrādā, bet arī nospiežot enter taustiņu, nosubmitojas forma :)... <form method="post" name="login" action="index_login.php"> <input name="lietotajs" type="text" value="lietotājs" onfocus="tuksh1();"> <input name="parole" type="password" value="parole" onfocus="tuksh2();"> <input class="sub" style="cursor:pointer;" type="button" onclick="parentNode.submit()"> </form> Būtu jauki, ja palīdzētu.
andrisp Posted July 21, 2008 Report Posted July 21, 2008 Tam vajadzētu notik by default. Un vispār kāpēc tev pogai ir onclick ? Tak forma tāpat submitēsies bez tā onclick.
indoom Posted July 21, 2008 Report Posted July 21, 2008 (edited) Neizmanto type="button" bet type="submit", un tad to onclick nevajag, un arī enter strādās. Edited July 21, 2008 by indoom
Artenis Posted July 21, 2008 Author Report Posted July 21, 2008 Bija gļuks, ar type="submit", bet nu atradu vainu un tomēŗvarēju pielietot submit pogu ar. paldies.
Recommended Posts