I want to get page_tag information from a page and I want the DOM for this page to be ready before I get the page tag information.
I do
$(document).ready(
{
alert("test");
var page_tag : $("head meta[name='page_tag']").attr('content');
page_tag : (page_tag) ? page_tag : '';
}
But it gives me errors
missing : after property id
alert("Check if document is ready");\n
Any suggestions on what could be the possible reasons for this, or any other way of checking whether dom is ready or not, before getting information on tag_page.
source
share