Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Place Check Button , beside answer Text input

Place Check Button , beside answer Text input 1 Jahr 6 Monate her #96333

  • king_and1
  • king_and1s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 29
  • Karma: 0
Unbenannt_2013-05-23.PNG



Hello , Do you know how to achieve this ?

If i put it in the answers div, the button will be shwon on every question , but i only want it on this question.

I´ve managed it with putting it in the question help text , but it would be nice to have this button right by the answer input.

Thanks
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Place Check Button , beside answer Text input 1 Jahr 6 Monate her #96340

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4360
  • Dank erhalten: 827
  • Karma: 381
Try this (assuming "53" is your question ID):
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() { 
 
		$('#question53 input[type="text"]').before('<input onclick="myCall()" type="button" value="Check" />');
 
	});
</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: king_and1
Moderatoren: ITEd
Ladezeit der Seite: 0.118 Sekunden
Donation Image