Hi,
when you provide your lss, you ought to have included the previous schript to add the "%".
Okay;
here what I found by playing around and trying something
Code:
<script type="text/javascript" data-author="Tony Partner">
$(document).on('ready pjax:scriptcomplete',function(){
// Input suffix
$('#question{QID} tr:eq(1) .answer-item :text.form-control').after('<span class="inserted-suffix"> %</span>').css({
'display': 'inline-block',
'width': '80%'
});
$('#question{QID} tr:eq(2) .answer-item :text.form-control').after('<span class="inserted-suffix"> €</span>').css({
'display': 'inline-block',
'width': '80%'
});
});
</script>
But, in my opinion you waste too much time with theses "silly" things.
Anybody is used to this
And your other question is plain validation:
Validation equation "What is allowed?"
C1_Y001_X001 le 100 AND C1_Y001_X002 le 100 AND ...
C1_Y002_X001 le 200 AND C1_Y002_X002 le 200 AND ...
Ant the validation tip "What happens if there is a wrong answer?"
{if(C1_Y001_X001 gt 100 OR C1_Y001_X002 gt 100 OR ...,"Please, enter correct values,"")}
You see, that I coded the y-axis with Y001, Y002,... and the x-axis with X001, X002,...
And if you enter numbers you'd better use an array(numbers). So you have not to check that there is no text entered.
Joffm