Zdravim mam broblem s valdiaciou, a neviem si rady
mam na stranke x formularov aby mi pri zadanie nej hodnoty ako cisla vyhodil uzivatelovi alert
zatial mam tento skript, len mi nefunguje
cehm to implementovat sem mozno to podla toho aj lepsie pochopite http://domacacukraren.clubpeto.net/ponuka/
$(document).ready(function(){
$("form.mainform").each(function() {
$(this).onSubmit(function() {
je_cislo($('input.pocet').val());
});
});
});
});
...
<form action="add.php" method="get" >
<label>Pocet</label>
<input type="text" name="pocet" value="1" class="pocet" maxlength="4"
/>
<input type="submit" class="tlacitko" name="odoslat" value="Do kosika"
/>
</form>
<form action="add.php" method="get" >
<label>Pocet</label>
<input type="text" name="pocet" value="1" class="pocet" maxlength="4"
/>
<input type="submit" class="tlacitko" name="odoslat" value="Do kosika"
/>
</form>
...
Vyriesene



