Hello, I have looked everywhere for this but can't seem to find an answer on my own so I need some help as I am new to JS and trying to learn.
What code would I need for changing the question text using Java script?
I know that
jQuery("#"+this.questionId+" .QuestionText").hide()
will hide the question text so logically I'm thinking that to define the value of the question text, the code would start:
jQuery("#"+this.questionId+" .QuestionText")
but what comes next? would it be
jQuery("#"+this.questionId+" .QuestionText").value("Hello everybody")
Much thanks and appreciation in advance
Dan
Page 1 / 1
Use below code for this:
jQuery("#"+this.questionId+" .QuestionText").html("Hello everybody");
AHHHH thank you! It works like a dream
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.