Input Component Help
Hi,
I am trying to create a page where the users try and solve problem sums and input the answer in a text box. I have thus, created a button that shows whether the answer is correct or wrong in an input box by using this script when the button is pressed:
var a1 = Apperyio('M1').val();
var test1 = function()
{
if(a1 === 144)
{
return('correct');
}
else
{
return('Wrong');
}
};
var getvalue1 = Apperyio('answer1').text;
getvalue1(test1);
But this does not work, can someone help me?
[Sorry, I am not very good at coding.]