I want to show and hide using JQuery methods.
Asked
Active
Viewed 1.5k times
-3
-
http://api.jquery.com/fadeIn/ whats the problem? – Alex K. Sep 10 '12 at 12:52
-
1Do you? And what did you try? A statement is not a question, and you haven't explained the problems you've had, or might be having. – David Thomas Sep 10 '12 at 12:52
-
You appear to have used the correct jQuery methods as tags in the question, so you know what functions to use... – jackwanders Sep 10 '12 at 12:53
-
2Welcome to [SO]. Please first search for the questions you have and then ask, if you don't get an answer. See [ask]? – mtk Sep 10 '12 at 12:54
3 Answers
3
use .show() and .hide() methods
$("#id").show("fold",{},1000);
$("#id").hide("fold",{},1000);

Jignesh
- 471
- 6
- 17
1
Use .show() and .hide()
for example, to hide it:
<p class="myParagraph">This is some paragraph that you want to hide</p>
<script type="text/javascript">
$(document).ready(function() {
$('.myParagraph').hide();
});
</script>

jsmith
- 976
- 8
- 19
1
Put your paragrAPHS IN
and try this code$(document).ready(function(){
$('button_hide_show').click(function(){
$("p").toggle();
});
})

GautamD31
- 28,552
- 10
- 64
- 85