how to query chain an id in an id javascript

JavaScript
$('#outer #inner');

Source

Also in JavaScript: