We can change the text format, style,font size by adding a class created as per the requirement to the div or any html element dynamically using the addClass method of jquery.
To add a class to an element using jQuery, you can use the addClass() method. This method takes a single argument, which is the name of the class to be added. Here is an example code block: ...