jquey functions is not working [Resolved]

Posted by Ankitsrist under jQuery on 3/25/2013 | Points: 10 | Views : 1120 | Status : [Member] | Replies : 4
hello,
i am new for jquery, i have written this simple jquery function but its not working, i have downloaded the latest jquery version and saved in root directory under jquery folder..

<script type="text/javascript" src="jquery/jQueryv1.9.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
('#toview').click(function(){
('#sub').hide();
});
});
</script>

<a id="toview" href="#">click to hide</a> 
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<div id="sub"><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"/></div>

help please
and please dont give links i have already googled a lot




Responses

Posted by: Jayakumars on: 3/25/2013 [Member] [MVP] Bronze | Points: 50

Up
0
Down

Resolved
hi
ankirist

try this code your code little bit mistake instead of $ needed. This is working in my pc.

<script type="text/javascript" language="javascript">
$(document).ready(function () {
$("#toview").click(function () {
$("#sub").hide();
});
});
</script>


Donot forgot Mark as resolved if it is useful.

Mark as Answer if its helpful to you

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

Posted by: Ankitsrist on: 3/25/2013 [Member] Starter | Points: 25

Up
0
Down
its silly mistake thanks....

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

Posted by: Jayakumars on: 3/25/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
yes welcome.This is one of the concentrate test.

Mark as Answer if its helpful to you

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

Posted by: Ankitsrist on: 3/25/2013 [Member] Starter | Points: 25

Up
0
Down
:)

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

Login to post response