Complete: extracting selected code for elements