public function jquery($selector, array $constructor = array())
    {
        if ($selector) {
            $this->last_selector = $selector;
        }

        if (isset($selector) && is_string($selector) && count($constructor) && substr($selector, 0, 1) === '<') {
            foreach ($constructor as $name => $value) {
                $this->$name($value);
            }
        }
        return $this;
    }
public function jquery($selector, array $constructor = array())
    {
        if ($selector) {
            $this->last_selector = $selector;
        }

        if (isset($selector) && is_string($selector) && count($constructor) && substr($selector, 0, 1) === '<') {
            foreach ($constructor as $name => $value) {
                $this->$name($value);
            }
        }
        return $this;
    }
public function jquery ( $ selector , array $ constructor = array ( ) ) { if ( $ selector ) { $ this -> last_selector = $ selector ; } if ( isset ( $ selector ) && is_string ( $ selector ) && count ( $ constructor ) && substr ( $ selector , 0 , 1 ) === '<' ) { foreach ( $ constructor as $ name => $ value ) { $ this -> $ name ( $ value ) ; } } return $ this ; }
Sets the jQuery selector, so you can chain many calls to it.

<code>
PheryResponse::factory()
->jquery('.slides')
->fadeTo(0,0)
->css(array('top' => '10px', 'left' => '90px'));
</code>

For creating an element

<code>
PheryResponse::factory()
->jquery('.slides', array(
'css' => array(
'left': '50%',
'textDecoration': 'underline'
)
))
->appendTo('body');
</code>

@param string $selector Sets the current selector for subsequent chaining, like you would using $()
@param array $constructor Only available if you are creating a new element, like $('&lt;p/&gt;', {'class': 'classname'})

@return PheryResponse
Sets the jQuery selector so you can chain many calls to it .