Hi in my survey i have a question where responded have two text entries to fill.
1) Hours ________ (content validation numeric)
2) Minutes __________(content validation numeric)
I want to display and alert when a respondent enters something greater than 16 in hours filed. I have tried the following code on Ready and it does not seems to be working.
var q1 = jQuery("#"+this.questionId+"input[type=text]").eq(0).val();
if(q1 > 16) {
alert("Please check if your work time is correct");
}
How can i do this effectively i just want a warning where respondent can go proceed even if they get warning.
Solved
How to create a alert message on multiple text entry (form) inputs?
Best answer by Niranjan
For any one looking for it I found the answer myself after going through a lot of hassle.
var msg = 'Your message'
var that = this.questionId;
jQuery("#" +that+" .InputText").on('blur',function(){
var q1 = jQuery("#"+that+" .InputText:eq(0)").val();
if(q1 > 16) {
alert(msg);
}
});
The above code is just to check in the first field.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
