Cjax Framework


Inserts html or elements inside an element.

Examples

PHP
<?php 

//Insert into the start of an #response
$ajax->insert('#response','This <span style=\'color:red\'>HTML</span> was inserted into the start #response');
//Insert into the end of an #response
$ajax->insert('#response','This <span style=\'color:red\'>HTML</span> was inserted into the end #response'true);

//move #other_element into the end of #response
$ajax->insert('#response','#other_element'true);

//move #other_element into the start of #response
$ajax->insert('#response','#other_element');


?>

Try it

[this is what what originally in #response]
 
 
#Other element

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

CodeIgniter  ·  Copyright © 2006 - 2012  ·  Cjax