PHP Classes

File: example.php

Recommend this page to a friend!
  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: 12 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'});


For more information send a message to info at phpclasses dot org.