No child under 18 years of age shall be detained or placed in any jail pursuant to the code.