Populate a field with a value from a field from another page on another domain
I'm trying to create a field which would pull values from another field on another page that's located on another domain.

There are 2 fields: #div-one (on page-one) and #div-two (on page-two)

There are two pages: page-one (on domain "One.com") and page-two (on domain "Two.com")

When a user opens page-one I want #div-one to pull the value that is inside #div-two on page-two located on Two.com.

I found this code:

    <script type="text/javascript">
    function pullValueFromPageTwo(){
        var val = $('[#div-two]').text();
        $('#div-one').val(val);
    }
    </script>

But I didn't found any clue of how to use that code to pull a value from another page and domain using jquery.
Populate a field with a value from a field from another page on another domain
===

I'm trying to create a field which would pull values from another field on another page that's located on another domain.

There are 2 fields: #div-one (on page-one) and #div-two (on page-two)

There are two pages: page-one (on domain "One.com") and page-two (on domain "Two.com")

When a user opens page-one I want #div-one to pull the value that is inside #div-two on page-two located on Two.com.

I found this code:

    <script type="text/javascript">
    function pullValueFromPageTwo(){
        var val = $('[#div-two]').text();
        $('#div-one').val(val);
    }
    </script>

But I didn't found any clue of how to use that code to pull a value from another page and domain using jquery.