<script>
jQuery(document).ready(function($) {
// Function to wrap every <span class="msf-h3"> in <p></p>
function wrapSpans() {
$('span.msf-h3').each(function() {
if (!$(this).parent().is('p')) {
$(this).wrap('<p></p>');
}
});
}
// Run initially in case elements are already present
wrapSpans();
// Set up a MutationObserver on the whole document body to catch dynamic changes.
var observer = new MutationObserver(function(mutations) {
wrapSpans();
});
observer.observe(document.body, { childList: true, subtree: true });
// Your existing AJAX code (if applicable)
$('.fw-button-next').click(function() {
var name = $('#msf-text-capital-structure').val();
$.ajax({
type: 'POST',
url: 'https://iadv.shop/forms/process.php',
data: { name: name },
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.log(error);
}
});
});
});
</script>
<div id="ipad-panel">
<div class="logo-container">
<img src="https://staging.indiaadvocacy.com/startup/assets/images/logo-dark.png" alt="Company Logo">
</div>
[multi-step-form id="3"]
</di>
<script>
jQuery(document).ready(function($) {
// Function to wrap every <span class="msf-h3"> in <p></p>
function wrapSpans() {
$('span.msf-h3').each(function() {
if (!$(this).parent().is('p')) {
$(this).wrap('<p></p>');
}
});
}
// Run initially in case elements are already present
wrapSpans();
// Set up a MutationObserver on the whole document body to catch dynamic changes.
var observer = new MutationObserver(function(mutations) {
wrapSpans();
});
observer.observe(document.body, { childList: true, subtree: true });
// Your existing AJAX code (if applicable)
$('.fw-button-next').click(function() {
var name = $('#msf-text-capital-structure').val();
$.ajax({
type: 'POST',
url: 'https://iadv.shop/forms/process.php',
data: { name: name },
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.log(error);
}
});
});
});
</script>
<div id="ipad-panel">
<div class="logo-container">
<img src="https://staging.indiaadvocacy.com/startup/assets/images/logo-dark.png" alt="Company Logo">
</div>
[multi-step-form id="3"]
</div>