jQuery

javascript foreach

How to Create Chaining in jQuery

In this article, you will learn How to Create Chaining in jQuery.

Example:-

<html>
<head>
<title>jQuery Chaining</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#p1").css("color", "red")
      .slideUp(2000)
      .slideDown(2000);
  });
});
</script>
</head>
<body>
<p id="p1">Welcome ti Hub of Tutorials!!</p>
<button>Click here</button>
ajax

How to create AJAX with PHP

In this article, you will learn How to create AJAX with PHP.

Example:-

index.php

<html>
<head>
<title>AJAX with PHP</title>
<script>
function showHint(str) {
    if (str.length == 0) { 
        document.getElementById("txtHint").innerHTML = "";
        return;
    } else {
        var xmlhttp = new 
jquery

How to Create jQuery CSS Method

In this article, you will learn How to Create jQuery CSS Method. CSS is a cascading stylesheet so we will explain How to Create jQuery CSS() Method.

Example:-

<html>
<head>
<title>jQuery css() Method</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("p").css({"background-color": "yellow",