Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Put 2 date type question in 1 question

  • researchguru
  • researchguru's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago - 7 years 1 month ago #147943 by researchguru
Put 2 date type question in 1 question was created by researchguru
Hi all,

I want to put two different dates next together in one question. I've tried below code, but it does not wok. Does anyone have any idea how to do this?

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

// Identify the questions
var thisQuestion = $('#question{QID}');
var nextQuestion = $(thisQuestion).next('div[id^="question"]');

// Hide the next question
$(nextQuestion).hide();

// Move the radios from the next question
$('.input.text', thisQuestion).append($('.input.text', nextQuestion));

// Some cleanup styles
$('.input.text, .input.text ul, .input.text li', thisQuestion).css({
'float': 'left'
});
$('.input.text ul', thisQuestion).css({
'list-style': 'none',
'margin-left': '50px'
});
$('.input.text li', thisQuestion).css({
'margin-right': '15px'
});
});
</script>


Many thanks
Last edit: 7 years 1 month ago by researchguru.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #147953 by holch
Replied by holch on topic Put 2 date type question in 1 question
Please do not post the same question twice: www.limesurvey.org/de/foren/design-issue...estion-in-1-question

Will close this thread.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose