- Posts: 106
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify some elements var modalSubmitBtn = $('#mandatory-soft-alert-box-modal'); var mandatoryModal = $(modalSubmitBtn).closest('.modal'); var modalCancelBtn = $('a[data-bs-dismiss="modal"]', mandatoryModal); var modalBody = $('.modal-body', mandatoryModal); // Add some classnames so we can style the modal mandatoryModal.addClass('soft-mandatory-modal'); modalSubmitBtn.addClass('soft-mandatory-modal-submit'); modalCancelBtn.addClass('soft-mandatory-modal-cancel'); // Move the buttons modalSubmitBtn.before(modalCancelBtn); // Submit button text modalSubmitBtn.text('New submit text'); // Cancel button text modalCancelBtn.text('New cancel text'); }); </script>
<style type="text/css" data-author="Tony Partner"> .soft-mandatory-modal-submit { background-color: #FF33FF } .soft-mandatory-modal-cancel { background-color: #00CCFF; } </style>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.