————————————————————————————————- https://ephptutorial.wordpress.com?discussion_id=1 var pathname = $(location).attr(‘href’);//to get id from url var page_id = (pathname.split(‘=’)); page_id = page_id[1]; To get the id by javascript ———————————————————————————————————– <html> <head> <title>ephptutorial.wordpress.com form…