Posted by Silvertype on 11/02/07 16:35
Hi guys,
I have these html tags:
<input type="text" id="txtName" name="txtName" />
<textarea id="taHello" name="taHello">hello world</textarea>
which I want to replace with the following tags:
<input type="text" id="txtName" name="txtName" onClick="setName()" />
<textarea id="taHello" name="taHello" onClick="setName()">hello
world</textarea>
I know that it can be done by using preg_replace but I haven't really
figured out how to use it. Any help would be greatly appreciated. Thanks in
advance.
Navigation:
[Reply to this message]
|