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>
<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
Post a Comment