Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Place Check Button , beside answer Text input

Place Check Button , beside answer Text input 3 years 6 months ago #96333

  • king_and1
  • king_and1's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Karma: 0



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
The administrator has disabled public write access.

Place Check Button , beside answer Text input 3 years 6 months ago #96340

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6567
  • Thank you received: 1477
  • Karma: 579
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.
The administrator has disabled public write access.
The following user(s) said Thank You: king_and1
Time to create page: 0.526 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form