<script>
$("*", document.body).each(function () {//is document.body a context?
var parentTag = $(this).parent().get(0).tagName;
//Above statement is only selecting the body tag why?
$(this).prepend(document.createTextNode(parentTag + " > "));
});
</script>
</body>
</html>
Is there any reason for selecting only body tag in the above script?Also is document.body a context?since document.body is not quoted will it be a context?
i hope these are the ansers you are looking for
It doesnt select only the Bodytag, if you run this code in Chrome you will see the tags
Yes, it is here is a line to the API LINK
Yes, it is here is a line to the API LINK