Jump to content
php.lv forumi

plus /minus


Mikijs

Recommended Posts

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

×
×
  • Create New...