- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script> $(document).ready(function(){ $(".numeric-multi li.multiplenumerichelp span input[id^='remainingvalue_78373X169X4091']").closest('li').hide(); $('#question4091 input').blur(function() { //alert('zzz'); $(".numeric-multi input.tip.problem").css('color' : 'red', 'background-color' : '#fff'); $(".numeric-multi input.tip.good").css('color' : '#090', 'background-color' : '#fff');} ); }); </script>
<script> $(document).ready(function(){ $('#answer78373X169X4082SQ002').css('background','red'); $("input[name^='78373X169X4088']").change(function() { //alert("Hello"+$('#answer78373X169X4082SQ002').val()+'zz='+$('#answer78373X169X4088SQ003').val()); somme = $('#answer78373X169X4088SQ003').val(); if (isNaN(somme)||somme=='') somme=0 ; somme2 = $('#answer78373X169X4088SQ004').val(); if (isNaN(somme2)||somme2=='') somme2=0 ; //alert('s2='+somme2); somme=parseInt(somme)+parseInt(somme2); if(somme>$('#answer78373X169X4082SQ002').val()) alert("Le nombre d'élèves doit être inférieur ou égal à " + $ ('#answer78373X169X4082SQ002').val()) ; }); }); </script>
$(".numeric-multi input.tip.problem").css({ 'color' : 'red' });