JQuery
- jQuery is a JavaScript Library.
- jQuery greatly simplifies JavaScript programming.
- jQuery is easy to learn.
Rules:
- To Run the Jquery programme first we have to download the jquery from www.jquery.co
2.Or GOTO www.jquerycdn.net and copy the cdn :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
Example:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#submit").click(function(){
$("p").hide();
});
});
</script>
</head>
<body>
<input type="submit" value="submit" id="submit">
<p>If you click on me, I will disappear.</p>
</body>
</html>
(Try This programme)
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#submit").click(function(){
$("p").hide();
});
});
</script>
</head>
<body>
<input type="submit" value="submit" id="submit">
<p>If you click on me, I will disappear.</p>
</body>
</html>
AJAX:
- AJAX:- Asynchronous Javascript and XML
- AJAX is a technique for creating fast and dynamic web pages.
Syntax:
$.ajax({
type:'POST',
url:'',
data:
success:function(result){
alert(result);
$("").html(result);
}
});


No comments:
Post a Comment