Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Show / hide text

Show / hide text 2 Jahre 4 Monate her #91550

  • ctdh
  • ctdhs Avatar
  • Fresh Lemon
  • Beiträge: 5
  • Karma: 0
I would like to create some information content at the beginning of my survey, but rather than show it all I would like the participant to be able to click a title to display the related information text.

Is there a simple java script I can use?

Which question type do you recommend for doing this?


click this heading to see some information you might want to read
Some information is hidden unless you wan to see it

Thanks for your help

Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Show / hide text 2 Jahre 4 Monate her #91556

  • Ben_V
  • Ben_Vs Avatar
  • Platinum Lime
  • Beiträge: 1350
  • Dank erhalten: 319
  • Karma: 89
Try something like this adding some CSS rules to get it smarter
<div id="MyToggle_link" onclick="$('#MyToggle').toggle('slow',function(){window.scrollTo(0,window.innerHeight+300);});">
Your text [] ... (or button) <input type="button" value="Expand/Collapse ⇅">
</div><!-- Start expand -->
<div id="MyToggle" style="display:none;color:#f55" onclick="document.getElementById('up_down').style.display='none'">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, set eiusmod tempor incidunt et labore et dolore magna aliquam...


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...
Letzte Änderung: 2 Jahre 4 Monate her von Ben_V.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.167 Sekunden
Donation Image