Hi I am new to web development. I need to work with JQuery. Even I have tried one jquery successfully but only after copying file to my online ftp folde
You can use like this.
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">/script>
</head>
<body>
<p></P><input type=button value="Click me" id="btn1"/>
<script>
$('#btn1').click(function()
{
$('p').html("Hello World!");
});
</script>
</body>
Include head
tag
<html>
<head>
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
</body>
</html>
Include in your head tag:
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
Like:
<head>
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>