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 7 - C# Razor - Passing a parameter variable from a Template to a Partial View.

Umbraco Razor Sort Nodes Ascending or Descending

Umbraco - Reset the Admin Password via SQL Server