Mikijs Posted August 12, 2008 Report Share Posted August 12, 2008 sveiki , velos uzzinat ka lai pareizi saskaita un atnjem ar js tatad <script> function adddelcount(id, zms) { if(document.getElementById(id).checked) { var mutch = document.getElementById('howmutch'); var newmutch = mutch.value + 1; mutch.value = newmutch; document.getElementById(zms).value = '1'; } else { var mutch = document.getElementById('howmutch'); var newmutch = mutch.value - 1; mutch.value = newmutch; document.getElementById(zms).value = '0'; } } </script> tagad man ir ta ka vertiba "howmutch" sakuma ir 14 kad nospiezu nost nekas nenotiek piespiezu klat paradas kkac psc vnk sak skaitli iet pa vienam uz augsu nevis uz prieksu... :/ Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 12, 2008 Report Share Posted August 12, 2008 JS saskaita un atnjem tieshi tapat kaa citur ;) bet JS ir tada lieta ka , nakot no formas laukiem tas ir Strings .. parveido par pareizu tipu mainigais=parseInt(mainigais) ; -- Link to comment Share on other sites More sharing options...
Recommended Posts