- Posts: 1
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).ready(function() { // Insert a new div after the progress bar $('<div id="navigator2" />').insertAfter('#progress-wrapper'); // Style the new div $('#navigator2').css({ 'text-align':'center' }); // Insert clones of the nav buttons in the new div $('input.submit:eq(0)').clone().appendTo('#navigator2'); $('input.submit:eq(2)').clone().appendTo('#navigator2'); });
Hello Tony,tpartner wrote: Sure, you can add clones of the navigation buttons with JavaScript.
$(document).ready(function() { // Insert a new div after the progress bar $('<div id="navigator2" />').insertAfter('#progress-wrapper'); // Style the new div $('#navigator2').css({ 'text-align':'center' }); // Insert clones of the nav buttons in the new div $('input.submit:eq(0)').clone().appendTo('#navigator2'); $('input.submit:eq(2)').clone().appendTo('#navigator2'); // Give the new buttons some new IDs $('#navigator2 input.submit').each(function(i) { var oldID = $(this).attr('id'); var newID = oldID + '2'; $(this).attr('id', newID) }); });
Thanks, didn't know about it.tpartner wrote: That's been tried but it doesn't work unless the navigator originates in navigator.pstpl.