Ajax Command Append Example - Jquery

How to use ajax command append?

Snippet Code


  
Rate this page :
  [ 0 votes]

The ajax command append which allows the client to append the html content in to each matched element given by the selector. Here, if you need to run this code you need Drupal.Drupal which is an official homepage of the open source content management system. The sample code using use ajax command append is given below.

function ajax_command_append($selector, $html, $settings = NULL) { return array( 'command' => 'insert', 'method' => 'append', 'selector' => $selector, 'data' => $html, 'settings' => $settings, ); }

Tags


Ask Questions

Ask Question