Question: how to get current page id in jquery?
Answer: First make hidden input or hidden HTML tag and add the current page id in it by id of the element: c_pageid and the value get_the_ID(); In your jQuery file you can get this value by id like var pageId=$("#c_pageid"). val();