Title: How to get html tag value using wordpress?
Last modified: August 22, 2016

---

# How to get html tag value using wordpress?

 *  [wp-jayesh](https://wordpress.org/support/users/wp-jayesh/)
 * (@wp-jayesh)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-get-html-tag-value-using-wordpress/)
 * Hi all I want to get the value of html tag element via wordpress e.g
 * <li id=”page”>Environment
 * Is there any wordpress function to get the value of li tag from its id or from
   tag as environment.Please tell me the function.Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Radices](https://wordpress.org/support/users/radices/)
 * (@radices)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-get-html-tag-value-using-wordpress/#post-5605014)
 * You could use `document.getElementById("id")` but it’s not a WordPress function.
 *  Thread Starter [wp-jayesh](https://wordpress.org/support/users/wp-jayesh/)
 * (@wp-jayesh)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-get-html-tag-value-using-wordpress/#post-5605019)
 * yes I can get the value by that but I want to get the page id from page name 
   and page name is in
    -  tag i tried it but i was not able to get the value,the value should come 
      on hovering the html element.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to get html tag value using wordpress?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [wp-jayesh](https://wordpress.org/support/users/wp-jayesh/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-get-html-tag-value-using-wordpress/#post-5605019)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
