Created
May 3, 2024 05:13
-
-
Save iamrealfarhanbd/7072741d0eb4352f5b17990d2755313f to your computer and use it in GitHub Desktop.
Fluent Forms: jQuery Function to Remove Dash from Progress Bar Step Indicators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide the dash initially when the document is ready | |
jQuery(document).ready(function() { | |
function removeDash() { | |
jQuery('.ff-el-progress-status').each(function() { | |
var text = jQuery(this).text().trim(); // Get the text content of the element | |
var newText = text.replace('-', ''); // Remove the dash | |
jQuery(this).text(newText); // Set the modified text back to the element | |
}); | |
} | |
removeDash(); | |
// Remove the dash when ff-btn-prev or ff-float-right button is clicked | |
jQuery(document).on('click', '.ff-btn-prev, .ff-btn-next', removeDash); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment