Prev Demo
jQuery
>
.Removeattr() - Remove Attribute From Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <div id="div1" style="color:blue">This is the DIV 1</div> <div id="div2" style="color:brown">This is the DIV 2</div> <div id="div3" style="color:green">This is the DIV 3</div> <div id="div4" style="color:pink">This is the DIV 4</div> <script> $("#div4").removeAttr("style"); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output