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 3 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 3 months ago #96340

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6213
  • Thank you received: 1376
  • Karma: 539
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
Moderators: ITEd
Time to create page: 0.173 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form