Hi! I'm trying to swap the option cell and the input cell in a Constant Sum question. I tried using the following code found in another question, but it didn't seem to have any impact.
<script>
$(document).ready(function(){
$('#[% QuestionName() %]_div .response_row').each(function(){
$(this).append($(this).find('.input_cell'));
});
$(window).resize(function(){
var maxWidth = 0;
$('#[% QuestionName() %]_div .option_cell').each(function(){
var thisWidth = $(this).width();
if (thisWidth > maxWidth) {
maxWidth = thisWidth;
}
});
$('#[% QuestionName() %]_div .option_cell').width(maxWidth);
});
$(window).resize();
})
</script>
Any insight into why it's not working/how to get the input cells on the right side of the page would be appreciated! Thanks!