Welcome, Guest
Username: Password: Remember me

TOPIC: how to get the question answer in javascript?

how to get the question answer in javascript? 11 months 1 day ago #108973

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 262
  • 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? 11 months 21 hours ago #108984

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1293
  • Thank you received: 303
  • Karma: 86
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? 11 months 20 hours ago #108989

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