function ctools_ajax_command_attr in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/ajax.inc \ctools_ajax_command_attr()
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
- includes/
ajax.inc, line 382 - Utilize the CTools AJAX responder.
Code
function ctools_ajax_command_attr($selector, $name, $value) {
return array(
'command' => 'attr',
'selector' => $selector,
'name' => $name,
'value' => $value,
);
}