Question

I have a button in the html:

<a id="comment">Comment</a>

When it is clicked I want the browser to focus on Facebook comments' textarea. I have:

$("#comment").click(function() {
        $("#fb-comments textarea").focus();
    });

but it doesn't work

Was it helpful?

Solution

It's served via an Iframe from Facebook, so you cannot access the content due to the Same Origin Policy. (you cannot do this at all)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top