How to remove underline with jQuery?

To remove underline from a text in jQuery, use the jQuery css() method. The css property text-decoration property is used with none value.


You can try to run the following code to remove underline:

Live Demo

<!DOCTYPE html>
<script src=""></script>
        mouseenter: function(){
        $(this).css({"text-decoration": "none"});
p {
   text-decoration: underline;
<p>Move the mouse pointer on the text to remove underline.</p>