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

TOPIC: Put the answer and question at the same line

Put the answer and question at the same line 3 years 2 months ago #97285

  • boyan
  • boyan's Avatar
  • Offline
  • Senior Lime
  • Posts: 49
  • Thank you received: 9
  • Karma: 1
Version 1.91+ Build 11804
The administrator has disabled public write access.

Put the answer and question at the same line 3 years 2 months ago #97286

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6229
  • Thank you received: 1382
  • Karma: 539
In that case, you will need to use the question ID instead of the {QID} placeholder.

Student Name:
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function(){
		$('#question941').addClass('inlineAnswer');
	});
</script>


Teacher Name:
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function(){
		$('#question942').addClass('inlineAnswer');
	});
</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: boyan

Put the answer and question at the same line 3 years 2 months ago #97287

  • boyan
  • boyan's Avatar
  • Offline
  • Senior Lime
  • Posts: 49
  • Thank you received: 9
  • Karma: 1
It worked beautifully! Thanks!
The administrator has disabled public write access.

Put the answer and question at the same line 3 years 2 months ago #97288

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6229
  • Thank you received: 1382
  • Karma: 539
Add this to template.css to align them better:
.inlineAnswer p.question {
	margin: 0;
}
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.
Moderators: ITEd
Time to create page: 0.226 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form