Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Changing Thank you message DIV CSS

Posted on by 14
Is there any way to change the CSS of div which appear after form submission? DIV looks below which comes with default height and width. We just need to remove this.
<div class=/onFormSubmittedFeedback/ style=/height: 442px; width: 1169px;//>
 
  • Khan zain Profile Picture
    Khan zain 1 on at
    Changing Thank you message DIV CSS
    To customize the CSS of a `<div>` that appears after form submission, you can use JavaScript to target the element and modify its styles. Here's a concise solution:
     
    // Wait for the document to be ready
    document.addEventListener('DOMContentLoaded', function() {
        // Find the div with the class 'onFormSubmittedFeedback'
        var feedbackDiv = document.querySelector('.onFormSubmittedFeedback');
        
        // Check if the div exists
        if (feedbackDiv) {
            // Remove inline styles (height and width)
            feedbackDiv.style.height = 'auto';
            feedbackDiv.style.width = 'auto';
            // You can also add other CSS styles as needed
        }
    });
    This script will remove the inline `height` and `width` styles from the `<div>` with the class `onFormSubmittedFeedback` once the document is fully loaded. You can further customize this script to add or remove other CSS styles as required.
     
    For better understanding, here are the excellent programming learning platforms:- 1. W3School  2. Iqra Technology  3. JavatPoint

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans