Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> </head> <body> <h1 style="color:red">Red text </h1> <button>Remove</button> <script> $(document).ready(function() { $("button").click(function() { $("h1").removeAttr("style"); }); }); </script> </body> </html>