Explore the community Forums Lectora Lectora Questions & Answers Drag and drop question: snap back if incorrect Reply To: Drag and drop question: snap back if incorrect

#393807 Score: 0
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
354 pts
@timk

Hi Lisa,

here’s a sample of a DND question with 1 dropzone and 2 correct items. I’ve simplified the code a little:

dragMgr.arrDragItems[3-1].restoreInit(Update_qu484);

This code resets the 3rd item from the 1st dropzone. If you wanted to reset the 2nd item you’d have to change it to [2-1]. You may also have to update “qu484” with the actual html name of your question.