Cjax Framework


Prepend html or elements before target element.

Examples


PHP
<?php 

    
//Appending HTML
    
$ajax->prepend('#response','This <span style=\'color:red\'>HTML</span> was prepended to #response');
    
//Appending or moving an element to #response
    
$ajax->prepend('#response','#other_element');
    
?>

Try it

#Response
 
 
#Other element

Previous Topic:  Previous Class    ·   Top of Page   ·   Demos Home   ·  

CodeIgniter  ·  Copyright © 2006 - 2012  ·  Cjax