Welcome, Guest
Username: Password: Remember me

TOPIC: Place Check Button , beside answer Text input

Place Check Button , beside answer Text input 2 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

This message has an attachment image.
Please log in or register to see it.

The administrator has disabled public write access.

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

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5095
  • Thank you received: 1047
  • Karma: 440
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.
The administrator has disabled public write access.
The following user(s) said Thank You: king_and1
Moderators: ITEd
Time to create page: 0.116 seconds