hey guys, two questions to the DOMDocument class...
I'm doing this with jQuery:
$('#wpf-wrapper .wpf-table .wpf-input').addClass('input-field');
I wanna do the same with the DOMDocument Class! How can this be done? How can I select this?
Second question is: Why is that not working?
$dom = new SmartDOMDocument();
$dom->loadHTML($shortcode);
$xpath = new DOMXPath($dom);
$qr = $dom->getElementById('quick-reply-submit');
//$qr->setAttribute('class', 'btn small width480');
//ERROR: Call to a member function on a non-object...??
Thank you for your help!