As in the title, I want to get the times when a user first starts typing something into an input box. And I want to do this for every input box in the question page.
I know how to access inputText—you could use
jQuery(".InputText")
but the problem is, I have two input texts on the same page, and it seems like jQuery .InputText doesn't differentiate between the two.
So I tried the following,
but the input1time and input3times 'saved' to my data spreadsheet are empty. In fact, the two codes/functions don't even run, as I've tried printing out to the console from both those functions (and nothing showed). How could I fix this?
var choice1entered = false;
var input1time;
this.getChoiceValue(1).onkeydown = function() {
if (!choice1entered) {
input1time = Date.now();
choice1entered = true;
}
};
var choice3entered = false;
var input3time;
this.getChoiceValue(3).onkeydown = function() {
if(!choice3entered) {
input3time = Date.now();
choice3entered = true;
}
};
Question
I want to get the time when a user starts inputting something into input boxes.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
