Hello,
I would like to count number of elements on remote page: For example remote page:
test.html with following structure
<div id="Layout">
<div class="product">...</div>
<div class="product">...</div>
<div class="product">...</div>
</div>
Then I would like call from test2.html
<script type="text/javascript">
$(document).ready(function(){
$('#result').load('/test.html #Layout product').length();
});
</script>
This code is not working. What is the right way to do it? Thank you.