overide jquery function

by Biswa R

HTML

<input id="show" type="button" value="Show" />
<input id="hide" type="button" value="Hide" /><br />
<div class="elems">first line</div>
<div class="elems">second line</div>
<div class="elems">third line</div>

JavaScript

$.fn.show = function(){
    this.each(function(){
        $(this).css("color","blue");
        $(this).css("text-decoration","none");
    });
    return this;
};
$.fn.hide = function(){
    this.each(function(){
        $(this).css("color","red");
        $(this).css("text-decoration","line-through");
    });
    return this;
};
$("#show").click(function(){
    $('.elems').show();
});

$("#hide").click(function(){
    $('.elems').hide();
});