Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamrealfarhanbd/7072741d0eb4352f5b17990d2755313f to your computer and use it in GitHub Desktop.
Save iamrealfarhanbd/7072741d0eb4352f5b17990d2755313f to your computer and use it in GitHub Desktop.
Fluent Forms: jQuery Function to Remove Dash from Progress Bar Step Indicators
// 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