It works well. Other problems are also solved. Thanks a lot!
https://community.qualtrics.com/XMcommunity/discussion/comment/38805#Comment_38805Thanks for your reply, Yeah, I would like to use "hover" (or anytime when they move the mouse inside the box) event instead of "click" event. I try the Qualtrics, there is "this.questionclick" available, but it seems there is no API for the "hover" event. So I want to use Jquery with the hover, but then I need to locate the box as the target of the Jquery.
rondev Thanks, do you have any idea for the second case?
@TomG Thanks for your answer. Please let me take the chance to ask for something general. e.g. I want to define var11,var12,var21,var22 with data1, data2, how should I define the variable in the loop? I tried the following: for (j = 1; j<4; i++) { for (i = 0; i < data.length; i++) { Qualtrics.SurveyEngine.setEmbeddedData("var"+j+(i+1), data+j[i]); } } but it is returning error. Would you have a good idea?
@Zhen Thank you for your reply. Unfortunately, it does not work. The code does not assign value from data[i] to vari. Does it work for you?
@TomG Thanks a lot, I tried the code, it turned with following error "Invalid JavaScript! You cannot save until you fix all errors: Unexpected token { " It seems like qualtrics is not reading the counter properly?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.