function ctools_ajax_command_attr

cis7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)
cle7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)
elmsmedia7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)
icor7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)
meedjum_blog7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)
mooc7 ajax.inc ctools_ajax_command_attr($selector, $name, $value)

Set a single property to a value, on all matched elements.

Parameters

$selector: The CSS selector. This can be any selector jquery uses in $().

$name: The name or key: of the data attached to this selector.

$value: The value of the data.

File

sites/all/modules/ulmus/ctools/includes/ajax.inc, line 62
Extend core AJAX with some of our own stuff.

Code

function ctools_ajax_command_attr($selector, $name, $value) {
  ctools_add_js('ajax-responder');
  return array(
    'command' => 'attr',
    'selector' => $selector,
    'name' => $name,
    'value' => $value,
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.