Hi,
first, sorry if it's a dumb question, but I'm not really a dev so please help even if it's stupid
I created a function in a new JS file
function getVal(Val1, Val2) {
Code: Select all
MyVal = Val1 * 360 / Val2 * 100;
return MyVal;
}
I would like to call it from an event, but it doesn't seem to be working
On Keyup:
var Myval = getVal(Input1.val(), Input2.val());
alert (Myval);
Unfortunately, this doesn't seem to work, although I'm pretty sure that should work on a normal HTML page...
I would also like to be able to read and set variables defined on this JS page, is this possible ?
thanks for your help