i'm trying to figure out how to set elements invisible using the parser. here's what i tried which didn't work unfortunately:
$button->style = "display:none";
any ideas? thanks
Use set setAttribute method http://php.net/manual/en/domelement.setattribute.php
$button->setAttribute("style", "display:none");
I don't know which parser you're using, but if you want to hide some HTML element, you need to set the style attribute to display:none.
So access the style attribute of that button and set it / extend it with display:none.
According to the reference given at http://simplehtmldom.sourceforge.net/ (if that is the component you're using), this should do it:
$dom->find("button[id=save]",0)->style = 'display:none';
<button>is not a valid PHP type. What PHP type is$button?