J Query Highlighting Text On Click

<!-- highlight-->
<script type="text/javascript">
$("p").click(function(){

$("div").css("visibility", "hidden");
$(this).css("visibility", "visible");
$(this).css("background-color", "yellow");

});


$("p").dblclick(function(){

$("div").css("visibility", "visible");

$(this).css("background-color", "");

});

</script>

Comments

Popular posts from this blog

Umbraco Razor Sort Nodes Ascending or Descending

Umbraco Razor get Querystring

Create a .NET Contact Form that Gets the Last Url Visited in C# Can also be Used in Umbraco