Welcome, Guest
Username: Password: Remember me

TOPIC: how to get the question answer in javascript?

how to get the question answer in javascript? 5 months 5 days ago #108973

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 210
  • Thank you received: 1
  • Karma: 0
i have a survey, which has 2 questions q1,q2.
i would like to add javascript in q2, i tried
<script type="text/javascript" charset="utf-8">
var q1answer={ q1.shown };
but canot get the value, i checked the manual, no content about it.
thanks for any help!
The administrator has disabled public write access.

how to get the question answer in javascript? 5 months 5 days ago #108984

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1122
  • Thank you received: 255
  • Karma: 79
hello,
I've got few idea but I think you have to remove the white-spaces included inside { q1.shown }
If not, your expression won't be parsed...
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

how to get the question answer in javascript? 5 months 5 days ago #108989

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 210
  • Thank you received: 1
  • Karma: 0
i see,thanks for your reply!
i just confused by the blank,{,“,(
Last Edit: 5 months 5 days ago by iscar.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.131 seconds
Donation Image