pQuery\IQuery::attr PHP Метод

attr() публичный Метод

Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
public attr ( string $name, null | string $value = null ) : string | pquery\IQuery
$name string The name of the attribute.
$value null | string The value to set or null to get the current attribute value.
Результат string | pquery\IQuery
    function attr($name, $value = null);