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

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6323
  • Thank you received: 1407
  • Karma: 547
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 3 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 3 months ago #97288

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6323
  • Thank you received: 1407
  • Karma: 547
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.
Time to create page: 0.192 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form