Skip to content

Return DOM manipulated into a var ? #188

Open
@devgiu

Description

@devgiu

Hi, I'm trying to do a simple thing, but I can't figure out how to do.

I have the HTML code will be outputed to browser, on a var, $html.
For testing, I'm just trying one thing. With JQuery, I do this to move a DOM element:
$j('#someid').parents('.form-group').after($j('#anotherid').parents('.form-group'))

I'm trying the same but server-side, I think is something like this:

$qp = html5qp($html);
$qp->find('#totalDocumento')->parents('.form-group')->after($qp->find('#contador')->parents('.form-group'));

But I don't know how to "save" this DOM manipulation again to $html variable. Maybe I'm doing in wrong way, but looking into samples and documentation I don't have it too much clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions