I'm using Zend_DOM_Query to read HTML elements using DOM.
<input type="text" class="a">
<input type="text" class="a">
<input type="text" class="a">
I load the html and find the <input> and then loop through the results.
foreach($inputss as $input){
}
What I actually want to do is add additional markup after each <input> like another input but of different class name <input type="text" class="b">. At the end my full markup will look like this
<input type="text" class="a">
<input type="text" class="b">
<input type="text" class="a">
<input type="text" class="b">
<input type="text" class="a">
<input type="text" class="b">
I keep seeing examples that use createElement() but nothing that seems to add HTML the way I need it added. Am I missing something?