- Posts: 10213
- Thank you received: 3635
Ask the community, share ideas, and connect with other LimeSurvey users!
//////// Question manipulation //////// // Hide the answer element in boilerplate questions $( 'div.inlineRow div.boilerplate .answers' ).hide(); // Hide the question text elements in non-boilerplate questions $('div.inlineRow div.questionCell .questiontext').hide(); // Push the question tables to 100% $( 'div.inlineRow table' ).css({ 'width': '100%' }); // Get everything to line up nicely vertically $( 'div.inlineRow .inlineQuestion .questiontext, div.inlineRow .inlineQuestion .answers p' ).css({ 'text-align': 'center' }); // Adjust cell heights so everything lines up nicely horizontally $( 'div.inlineRow .inlineQuestion .answers, div.inlineRow .inlineQuestion .questiontext' ).css({ 'height':'35px', 'overflow':'hidden', 'padding':'0.5em' }); //$( '#inlineWrapper0 .inlineQuestion' ).css({'height':'50px'}); $( '#inlineWrapper0 .questiontext' ).css({ 'height':'50px' }); // Yes-no question styles $( 'div.inlineRow div.yes-no ul' ).css({ 'text-align': 'center', 'font-size': '90%', 'margin': '0', 'padding-bottom': '5px' }); $( 'div.inlineRow div.yes-no li' ).css({ 'padding-right': '1.5em' }); $( 'div.inlineRow div.yes-no .answers' ).css({ 'padding-bottom': '0' }); // Short-text question styles $( 'div.inlineRow div.text-short input' ).css({ 'width': '125px', 'margin-left': '0' }); // Numeric question styles $( 'div.inlineRow div.numeric input' ).css({ 'width': '125px', 'margin-left': '0' }); $( 'div.inlineRow div.numeric p.tip' ).css({ 'display': 'none' }); // Get rid of the margins around select boxes $( 'div.inlineRow p.question' ).css({'margin':'0'}); }