hey guys,
$form
holds this...
<form method="post" action="">
<input type="hidden" name="ip" value="127.0.0.1">
<label for="s2email">Your Email</label>
<input type="text" name="email" id="s2email" value="email..." size="20" onfocus="if (this.value == 'email...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'email...';}">
<input type="submit" name="subscribe" value="Subscribe">
<input type="submit" name="unsubscribe" value="Unsubscribe">
</form>
Since I have no idea what's possible with the DOMDocument
class I need to ask for help.
I actually have two things I need to transform on the $form above.
1.) label-s2email and its input#sd-email
should be wrapped inside a <div class="name">
Is that even possible to select those two (via id or for-attribute) and wrap those two into a div?
2.) Is it possible to remove the onfocus and onblur attribute with php?
thank you for your help