Artenis Posted July 21, 2008 Report Share 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. Link to comment Share on other sites More sharing options...
andrisp Posted July 21, 2008 Report Share 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. Link to comment Share on other sites More sharing options...
indoom Posted July 21, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
Artenis Posted July 21, 2008 Author Report Share Posted July 21, 2008 Bija gļuks, ar type="submit", bet nu atradu vainu un tomēŗvarēju pielietot submit pogu ar. paldies. Link to comment Share on other sites More sharing options...
Recommended Posts