Take contentd from url and place in container on page

Posted by Jackson on Stack Overflow See other posts from Stack Overflow or by Jackson
Published on 2010-04-29T04:32:30Z Indexed on 2010/04/29 4:37 UTC
Read the original article Hit count: 328

Filed under:
|

Hi There,

I would like to use jQuery to find the last page name / directory from the url and display it on the page in a <h3> container. For example: /_blog/PunkLogic_News/tag/videos/ I would like to display 'videos' in a specific <h3 class="urltag"> on the page. /_blog/PunkLogic_News/tag/Noosa_Biosphere/ I would like to display 'Noosa Biosphere' without the underscore. I suppose all special characters would need to be removed as well.

Thanks in advance for your help.

Jackson

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript