There is a form with sending data in php and getting the result back.
<form id="call" action=""> <input type="text" name="name"></div> <input type="submit" class="" value="Отправить"> </form> <div id="calls"/> call.js
jQuery(document).ready(function($) { $("#call").submit(function() { var str = $(this).serialize(); $.ajax( { type: "POST", url: "call.php", data: str, success: function(msg) { elm = document.getElementById('calls'); elm.innerHTML = msg; } } }); return false; }); call.php
$call = 1; echo 'Тут текст'; How in js to make check on $ call ?.
$("#test").fadeIn;A form with a name is just an example. You need to check in js itself for the value of $ call - nicolaa variable