how to use jquery in asp.net to hide a div on button click

Posted by Shanky11 under jQuery on 5/6/2013 | Points: 10 | Views : 1264 | Status : [Member] | Replies : 2
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

<script src="jquery/jquery1.9.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table width="100%"><tr><td>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery Simple Slideshow with text overlay Example in Asp.net</title>
<script src="http://code.jquery.com/jquery-1.8.2.js" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function () {
$("#hidebtn").click(function () {
$("#homedata").hide();
});

});
</script>
</head>
</html>




Responses

Posted by: Niladri.Biswas on: 5/6/2013 [Member] Platinum | Points: 25

Up
0
Down
So what is wrong?

Best Regards,
Niladri Biswas

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shanky11 on: 5/6/2013 [Member] Starter | Points: 25

Up
0
Down
nothing is happening???????????
i have a div i need to hide this on button click.....
follow this link
http://www.domore.lk/
see the numbering on this page on click of this image changes........ like this i need to hide a div

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response