Skip to content

Conversation

coderkk
Copy link

@coderkk coderkk commented Jun 7, 2012

I have implemented a css(), show() and hide() function at phpQueryObject.php

Basically, the syntax call like jQuery.

Example,
$doc = phpQuery::newDocumentHTML("

Content Here
");

// setter using property name
$doc[".styleHere"]->css('background-color', '#003300');

// setter using property namemap
$doc[".styleHere"]->css(array(
"border" => "1px solid #0000",
"border-collapse" => "collapse;"
));

// getter using property name
echo "Border is : " . $doc[".styleHere"]->css('border');

// output result
echo $doc;

Also can hide the element using $doc[".styleHere"]->hide(), and show the element using $doc[".styleHere"]->show()

@mindplay-dk
Copy link

10 months and not even a comment - I beg your pardon, but it's looking like @punkave are no more committed to maintaining this than Tobiasz was...

@applehat
Copy link

10 months? Try almost 3 years now! hah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants