Hide all elements of HTML form using jQuery

If you want to hide all the elements of the form then below jQuery code will help you to achieve this.
<script type="text/javascript">
$(document).ready(function(){
    $("#form1").hide()
});
</script>

"form1" is the Id of the HTML form. Hide() function can be used with any control. If you don't want to hide all the elements of the form but you want to hide elements of particular div, then you can use hide() function on div element also. Suppose a div is declare with id "dvElement" then
<script type="text/javascript">
$(document).ready(function(){
    $("#dvElement").hide()
});
</script>

Feel free to contact me for any help related to jQuery. I will gladly help you.
SHARE

Nothing shocks me, I'm a Software Engineer. And I am not young enough to know everything. I live in World Wide Web and from there take care of this website. This website communicates about my work, learning and experience. I believe life is short, and it is for loving, sharing, learning and connecting. So lets connect..