Question
How to apply javascript (cleave.js) to multiple questions?
Hi All, I'm trying to format questions to force the user to enter a time in the (hh:mm) format. Following this thread, I was able to format only the first text entry question. TomG suggested to use `
jQuery("#"+this.questionId+" .InputText").addClass("newClassName");
`, however, I wasn't sure how to apply it.
I tried : `
jQuery("#"+this.questionId+" .InputText").addClass("newClassName");
new Cleave('.InputText', {
time: true,
timePattern: ['h', 'm']
});
`, but it doesn't work. Does anyone have any insight on how to fix it? Thank you!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
