PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Andrei Caminschi  >  jQuery Helper  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: jQuery Helper
Generate Javascript to call jQuery library
Author: By
Last change:
Date: 5 years ago
Size: 464 bytes


Class file image Download

include 'jquery.php';
$jQuery = new jQuery();

  ## change the html of an element
echo $jQuery("'#id_here'")->html('new content');
# output : $('#id_here').html('new content');

  ## use the ajax
echo $jQuery()->ajax(array(
# output : $.ajax({url:'some_url',type:'POST',data:{username:'zzerachiel'});