Hello,
I've tried the following code in my sample page and it doesn't work.All I'm trying to do is just append some text into a div on the page when the button is clicked.
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/jscript">
$(document).ready(function () {
$('#Button1').click(function () {
$('#testdiv').append("Hello World!!");
});
});
</script>
<input id="Button1" type="button" value="button" />
<div id="testdiv">
adiv
</div>
</asp:Content>
Please guide me on how to get this simple thing to work in jquery...
Thanks
Edit:I updated my code as you suggested...still doesn't work...please help me...Thanks