0 Replies Latest reply on Jun 15, 2009 1:09 PM by chieffan

    using nextSibling on button click

    chieffan Level 1

      I have a few pages of feedback to provide a user after they have answered a question.  I want to use nextSibling to go to the next feedback but can't grasp how to do that on a button click.  Can someone help me out?  This is what I have right now that brings back the first feedback piece. So when they click next I want to get the next feedback piece.  Thanks.


      currFeedback = XPathAPI.selectSingleNode(myXML.firstChild, "scenario/question/level[@id='"+startLevel+"'").firstChild.firstChild.nodeValue;