public function attr($attr, $data, $selector = null)
    {
        return $this->cmd('attr', array(
            $attr,
            $data
        ), $selector);
    }
public function attr($attr, $data, $selector = null)
    {
        return $this->cmd('attr', array(
            $attr,
            $data
        ), $selector);
    }
public function attr ( $ attr , $ data , $ selector = null ) { return $ this -> cmd ( 'attr' , array ( $ attr , $ data ) , $ selector ) ; }
Set the attribute of a jQuery selector

Example:

<code>
PheryResponse::factory()
->attr('href', 'http://url.com', 'a#link-' . $args['id']);
</code>

@param string $attr HTML attribute of the item
@param string $data Value
@param string $selector [optional] Provide the jQuery selector directly

@return PheryResponse
Set the attribute of a jQuery selector