tazzi
Joined: 26 Jun 2008 Posts: 1
|
Posted: Thu Jun 26, 2008 2:09 pm Post subject: finding and deleting a tag |
|
|
Hi to any one that can point help me out
I want to be able delete a <p> and </p> tag that is around a bit of php script using javascript
so something like this: (and I know this doesn't make sense)
function (){
var theTags = Document.Tags.FindAll("p",Item);
if (theTags){
delete
}
}
in other words I want to find the the first opening p tag and the closing p tag and delete them but leaving the content that was wrapped by the tags untouched
Is this possible
so the end result would change from this:
<div><p><?php some php script ?></p></div>
to just this:
<div><?php some php script ?></div>
I hope this makes sense!!
thanks in advance tazzi |
|