DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
how to get the current page id in wordpress using jquery
$
(
document
)
.
ready
(
function
(
)
{
if
(
$
(
"body"
)
.
hasClass
(
"page-id-3202"
)
)
{
//code here
}
}
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#current
#page
#id
#wordpress
#jquery
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit