Hi,
you want a condition in which the particular div, para or any other tag need to be disappear with just a single click see my code written in jquery as simplest.
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
A simple three phase of working code is here.
- Loading of document
- Define which tag should be selected (you can select
- Choose what you want to deal with selected tag (hide in this case).
And your html code section will go like this
<p>Since you selected p tag to disappear. This will gone on just a single click.</p>
0 Comment(s)