Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


finding and deleting a tag



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
tazzi



Joined: 26 Jun 2008
Posts: 1

PostPosted: Thu Jun 26, 2008 2:09 pm    Post subject: finding and deleting a tag Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap